Sha256: 25155d4984acbb9a01fbc7649179911961ee16dbdbd87789fc9aeefab26ddac1
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 Bytes
Contents
require 'rspec' require File.dirname(__FILE__) + "/../lib/" + "gherkin_repo" describe "cql" do describe 'filter' do it 'should filter by a single tag' do gs = CQL::GherkinRepository.new File.dirname(__FILE__) + "/../fixtures/features/tagged_features" result = gs.query do select names from features with tags '@one' end result.should == ["Test Feature", "Test3 Feature"] result = gs.query do select names from features with tags '@two' end result.should == ["Test2 Feature", "Test3 Feature"] end it 'should filter by a multiple tags' do gs = CQL::GherkinRepository.new File.dirname(__FILE__) + "/../fixtures/features/tagged_features" result = gs.query do select names from features with tags '@one', '@two' end result.should == "Test3 Feature" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cql-0.0.1 | spec/filter_dsl_spec.rb |