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
Sorry if this is obvious. Can anyone explain to me why this is expected behavior?
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
gem 'rspec'
gem 'json_expressions'
end
require 'rspec'
require 'json_expressions/rspec'
class Test
describe do
it 'does not work' do
expect({test: :test}).to match_json_expression({test: :test2})
end
end
end
results in
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using diff-lcs 1.2.5
Using json_expressions 0.8.3
Using rspec-support 3.4.1
Using bundler 1.11.2
Using rspec-core 3.4.4
Using rspec-expectations 3.4.0
Using rspec-mocks 3.4.1
Using rspec 3.4.0
.
Finished in 0.0005 seconds (files took 2 seconds to load)
1 example, 0 failures
The text was updated successfully, but these errors were encountered:
Symbols are used for capturing certain values. In this case, you captured :test into your :test2. Search for matcher.captures[:user_id] in README to get more info.
Sorry if this is obvious. Can anyone explain to me why this is expected behavior?
results in
The text was updated successfully, but these errors were encountered: