Sha256: ea1f8b8edfcf100661e82017cd2a0a6747eca20bc08e666287cd8234667465d4
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "spec_helper") module Wally describe SearchResult do subject { SearchResult.new(nil) } it "knows when there are no results" do subject.matches?.should == false end it "contains no matched scenarios" do subject.matched_scenarios.should == [] end it "knows when there is a feature match" do subject.matched_feature = {} subject.matches?.should == true end it "knows when there are scenario matches" do subject.matched_scenarios = [{}] subject.matches?.should == true end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.5 | spec/wally/search_result_spec.rb |
wally-0.0.3 | spec/wally/search_result_spec.rb |
wally-0.0.2 | spec/wally/search_result_spec.rb |
wally-0.0.1 | spec/wally/search_result_spec.rb |