spec/approvals_spec.rb in approvals-0.0.21 vs spec/approvals_spec.rb in approvals-0.0.22
- old
+ new
@@ -106,9 +106,16 @@
$what = 'greatness'
string = "We have, I fear, confused power with greatness."
Approvals.verify string, :namer => namer
end
+ # Bugfix: If only the approved file gets passed through ERB,
+ # then <% (received) is not equal to <% (approved).
+ it "passes the received files through ERB" do
+ string = "<%"
+ Approvals.verify string, :namer => namer
+ end
+
describe "supports excluded keys option" do
let(:hash) { {:object => {:id => rand(100), :created_at => Time.now, :name => 'test', deleted_at: nil}} }
before do
Approvals.configure do |c|