require 'spec_helper' RSpec.describe Aruba::Runtime do # describe '#fixtures_directory' do # context 'when no fixtures directories exist' do # it "should raise exception" do # expect { api.fixtures_directory }.to raise_error # end # end # # context 'when "/features/fixtures"-directory exist' do # before(:each) { api.create_directory('features/fixtures') } # # it { expect(api.fixtures_directory).to eq expand_path('features/fixtures') } # end # # context 'when "/spec/fixtures"-directory exist' do # before(:each) { api.create_directory('spec/fixtures') } # # it { expect(api.fixtures_directory).to eq expand_path('spec/fixtures') } # end # # context 'when "/test/fixtures"-directory exist' do # before(:each) { api.create_directory('test/fixtures') } # # it { expect(api.fixtures_directory.to_s).to eq expand_path('test/fixtures') } # end # end end