Sha256: 0e08620db1dae5559aad41480263698a3c6cf41016cb0af3fe4b6761d6b45aaa
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
describe Pacto do modes = %w{generate validate} modes.each do |mode| enable_method = "#{mode}!".to_sym # generate! query_method = "#{mode[0..-2]}ing?".to_sym # generating? disable_method = "stop_#{mode[0..-2]}ing!".to_sym # stop_generating! describe ".#{mode}!" do it "tells the provider to enable #{mode} mode" do expect(subject.send query_method).to be_false subject.send enable_method expect(subject.send query_method).to be_true subject.send disable_method expect(subject.send query_method).to be_false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.3.1 | spec/unit/pacto/core/modes_spec.rb |
pacto-0.3.0 | spec/unit/pacto/core/modes_spec.rb |