spec/recipe_book_spec.rb in debug-bar-1.1.1 vs spec/recipe_book_spec.rb in debug-bar-1.2.0
- old
+ new
@@ -35,23 +35,25 @@
before(:each) do
@book = RecipeTestBook.new
end
+ subject { @book }
+
describe 'recipe introspection' do
it 'should give the list of all known recipes as symbols' do
@book.recipes.sort.should == [:time, :opts, :render].sort
end
it 'should allow checking for knowledge of a recipe by symbol' do
- @book.include?(:time).should be_true
- @book.include?(:zeta).should be_false
+ expect(subject.include?(:time)).to be_truthy
+ expect(subject.include?(:zeta)).to be_falsey
end
it 'should allow checking for knowledge of a recipe by string' do
- @book.include?('time').should be_true
- @book.include?('zeta').should be_false
+ expect(subject.include?('time')).to be_truthy
+ expect(subject.include?('zeta')).to be_falsey
end
end
describe 'recipe fetching' do