Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Fix weird bug in feature specs: comparison of the string with itself …
Browse files Browse the repository at this point in the history
…is always true
  • Loading branch information
Alexey Chernenkov committed Jun 7, 2016
1 parent 8b20f2e commit c8c843c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/decrypt_string.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Feature: Decrypt String
And a file named "secrets" containing "some content"
And I encrypt the file "secrets" for "Slow Joe Crow"
And I read the file "secrets.gpg" to a string
And the string should not be "secrets"
And the string should not be "some content"
When I decrypt the string with passphrase "test"
Then the string should be "secrets"
Then the string should be "some content"
2 changes: 1 addition & 1 deletion features/step_definitions/ruby_gpg_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@
end

Then /^the string should be "([^\"]*)"$/ do |string|
string.strip.should == string.strip
@string.strip.should == string.strip
end

0 comments on commit c8c843c

Please sign in to comment.