Sha256: 1c8856926a8756827a23ea31cc66f86495c889068a91243f544de7d98dfd928b
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
Feature: must So that I can write accurate specifications As an RSpec user I want to be able to use #must instead of #should Scenario: #must with matching matcher Given a file named "must_matching_spec.rb" with: """ require 'rspec' require 'rspec/must' describe true do it { must be_true } end """ When I run `rspec must_matching_spec.rb` Then the example must pass Scenario: #must with non-matching matcher Given a file named "must_non-matching_spec.rb" with: """ require 'rspec' require 'rspec/must' describe true do it { must be_false } end """ When I run `rspec must_non-matching_spec.rb` Then the example must fail And the output must match /expected.+to be false/ Scenario: #must_not with matching matcher Given a file named "must_not_matching_spec.rb" with: """ require 'rspec' require 'rspec/must' describe true do it { must_not be_false } end """ When I run `rspec must_not_matching_spec.rb` Then the example must pass Scenario: #must_not with non-matching matcher Given a file named "must_not_non-matching_spec.rb" with: """ require 'rspec' require 'rspec/must' describe true do it { must_not be_true } end """ When I run `rspec must_not_non-matching_spec.rb` Then the example must fail And the output must match /expected.+to be true/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-must-0.0.1 | features/must.feature |