spec/firebrew/firefox/profile_spec.rb in firebrew-0.1.3 vs spec/firebrew/firefox/profile_spec.rb in firebrew-0.2.0
- old
+ new
@@ -14,11 +14,11 @@
let(:data_file){'base.ini'}
context 'when "profiles.ini" not existed' do
let(:base_dir){'not/existed/directory'}
let(:data_file){'not_found.ini'}
- it { expect{subject}.to raise_error(Firebrew::ProfilesFileNotFoundError) }
+ it { expect{subject}.to raise_error(Firebrew::ProfilesFileNotFoundError, %["profiles.ini" not found: #{File.expand_path File.join(self.base_dir, self.data_file)}]) }
end
describe '#all()' do
subject { super().all }
it { expect(subject.size).to eq(3) }
@@ -59,10 +59,10 @@
let(:name){'other_profile'}
it { expect{subject}.to_not raise_error}
context 'when not existed the `name` in the profiles.' do
let(:name){'not_existed_profile_name'}
- it { expect{subject}.to raise_error(Firebrew::ProfileNotFoundError) }
+ it { expect{subject}.to raise_error(Firebrew::ProfileNotFoundError, "Profile not found: #{self.name}") }
end
end
end
end
end