You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe 'RulesController' do
it 'always returns the list of general rules' do
get "/partner_setup/rules/1/general_rules"
rules = JSON.parse(response.body)
expect(rules).to match(a_hash_including({
'title' => 'Test',
'description' => 'a link will not be included in the emails'
}))
end
end
Running the above test gives this error:
expected [{"id"=>"1", "title"=>"Test", "description"=>"a link will not be included in the emails"}] to match (a hash including {"title" => "Test", "description" => "a link will not be a hash includingd in the emails"})
Diff:
@@ -1,2 +1,4 @@
-(a hash including {"title" => "Test", "description" => "a link will not be a hash includingd in the emails"})
+[{"id"=>"1",
"title"=>"Test",
"description"=>"a link will not be included in the emails"}]
The text was updated successfully, but these errors were encountered:
Running the above test gives this error:
The text was updated successfully, but these errors were encountered: