Created
April 19, 2018 03:52
-
-
Save krainboltgreene/81c70c7c7dbad8cde10dd45543ce046e to your computer and use it in GitHub Desktop.
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
SmartParams | |
returns as json (FAILED - 1) | |
Failures: | |
1) SmartParams returns as json | |
Failure/Error: | |
expect( | |
CreateAccountSchema.new({ | |
data: { | |
type: "accounts", | |
attributes: { | |
email: "kurtis@example.com" | |
} | |
} | |
}).as_json | |
).to eq( | |
expected: {"data"=>{"type"=>"accounts", "attributes"=>hash_including("email"=>"kurtis@example.com", "password"=>"an_instance_of(String)")}} | |
got: {"data"=>{"type"=>"accounts", "attributes"=>{"email"=>"kurtis@example.com", "password"=>"30435b296dbfadc95af3dcfb181ee392f26391a27329956813dc3be47e88f3ff"}}} | |
(compared using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-"data" => {"type"=>"accounts", "attributes"=>hash_including("email"=>"kurtis@example.com", "password"=>"an_instance_of(String)")}, | |
+"data" => {"type"=>"accounts", "attributes"=>{"email"=>"kurtis@example.com", "password"=>"30435b296dbfadc95af3dcfb181ee392f26391a27329956813dc3be47e88f3ff"}}, | |
# ./lib/smart_params_spec.rb:69:in `block (2 levels) in <top (required)>' | |
Top 1 slowest examples (0.01967 seconds, 95.2% of total time): | |
SmartParams returns as json | |
0.01967 seconds ./lib/smart_params_spec.rb:68 | |
Finished in 0.02066 seconds (files took 0.91455 seconds to load) | |
1 example, 1 failure | |
Failed examples: | |
rspec ./lib/smart_params_spec.rb:68 # SmartParams returns as json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment