Sha256: 09b0751197465cca27da4250a1267474d42944dea806954d92b78e81884404d6
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' describe 'CQL::Repository' do clazz = CQL::Repository it 'can be made from a file path' do expect { clazz.new(@feature_fixtures_directory) }.to_not raise_error end it 'can be made from a model' do some_model = CukeModeler::Scenario.new expect { clazz.new(some_model) }.to_not raise_error end it "complains if can't be made from what it was given" do expect { clazz.new(:some_other_thing) }.to raise_error(ArgumentError, "Don't know how to make a repository from a Symbol") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cql-1.2.0 | spec/repository_spec.rb |
cql-1.1.0 | spec/repository_spec.rb |
cql-1.0.1 | spec/repository_spec.rb |