Sha256: 78c212dbc3d37546360496425850007ff00c1cd82268b91100b2ffd6d8b35c6d
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper' require 'pathname' describe TableBeet::Step do let(:step) do TableBeet::Loader.new(path: FIXTURES_PATH).load TableBeet::World.scopes[:turnip].first end describe '#id' do it 'should return method id' do expect(step.id).to be_instance_of(Fixnum) end end describe '#source' do it 'should return step source' do expect(step.source).to include("expect(name).to eq('Kuririn')") end end describe '#location' do it 'should return location of source' do expect(step.location).to include("global_steps.rb:1") expect(step.location).to include(FIXTURES_PATH) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
table_beet-0.0.4 | spec/step_spec.rb |
table_beet-0.0.3 | spec/step_spec.rb |