spec/templates/erb_spec.rb in ronin-support-0.5.1 vs spec/templates/erb_spec.rb in ronin-support-0.5.2
- old
+ new
@@ -4,18 +4,18 @@
require 'templates/classes/example_erb'
describe Templates::Erb do
subject { ExampleErb.new }
- before(:all) do
+ before do
subject.x = 2
subject.y = 3
end
it "should render inline ERB templates" do
- subject.erb(%{<%= 'hello' %>}).should == 'hello'
+ expect(subject.erb(%{<%= 'hello' %>})).to eq('hello')
end
it "should render ERB templates using the binding of the object" do
- subject.erb(%{<%= @x %> <%= @y %>}).should == '2 3'
+ expect(subject.erb(%{<%= @x %> <%= @y %>})).to eq('2 3')
end
end