Skip to content

Commit

Permalink
Fix brittle test (#1127)
Browse files Browse the repository at this point in the history
Update brittle test to handle new standard command.

Instead of locking standard to a specific version to avoid test
failures, we update the test to account for the new command provided by
a recent [release][1]

[1]: https://github.com/standardrb/standard/releases/tag/v1.26.0
  • Loading branch information
stevepolitodesign authored Apr 29, 2023
1 parent 1712f3e commit a47c66a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/suspenders/generators/lint_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
# rake task works and we don't need to fake it
rake_output = `rake -T`

expect(rake_output.lines.size).to eq 2
expect(rake_output.lines.size).to eq 3
expect(rake_output.lines[0]).to start_with("rake standard")
expect(rake_output.lines[1]).to start_with("rake standard:fix")
expect(rake_output.lines[2]).to start_with("rake standard:fix_unsafely")
end
end
end
Expand Down

0 comments on commit a47c66a

Please sign in to comment.