forked from moskvin/mutations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
156 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,15 @@ | |
|
||
assert outcome.success? | ||
assert_equal({:name => "John", :email => "[email protected]", :amount => 5}.stringify_keys, outcome.result) | ||
assert_equal nil, outcome.errors | ||
assert_nil outcome.errors | ||
end | ||
|
||
it "should filter out spurious params" do | ||
outcome = SimpleCommand.run(:name => "John", :email => "[email protected]", :amount => 5, :buggers => true) | ||
|
||
assert outcome.success? | ||
assert_equal({:name => "John", :email => "[email protected]", :amount => 5}.stringify_keys, outcome.result) | ||
assert_equal nil, outcome.errors | ||
assert_nil outcome.errors | ||
end | ||
|
||
it "should discover errors in inputs" do | ||
|
@@ -70,7 +70,7 @@ | |
|
||
assert !outcome.success? | ||
assert_equal :max_length, outcome.errors.symbolic[:name] | ||
assert_equal nil, outcome.errors.symbolic[:email] | ||
assert_nil outcome.errors.symbolic[:email] | ||
end | ||
|
||
it "should merge multiple hashes" do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.