Commit 2c08152b by Prem Sichanugrist

Remove the compiled .rbc file from Rubinius so it will regenerate

This will fix the problem on the CI server, where some time the change occurred by "write_file" will not trigger Rubinius to generate a compiled .rbc file.
parent 0e8b874c
...@@ -10,15 +10,12 @@ end ...@@ -10,15 +10,12 @@ end
World(AttachmentHelpers) World(AttachmentHelpers)
When /^I modify my attachment definition to:$/ do |definition| When /^I modify my attachment definition to:$/ do |definition|
in_current_dir do write_file "app/models/user.rb", <<-FILE
File.open("app/models/user.rb", "w") do |file|
file.write <<-FILE
class User < ActiveRecord::Base class User < ActiveRecord::Base
#{definition} #{definition}
end end
FILE FILE
end remove_file 'app/models/user.rbc' rescue nil
end
end end
When /^I upload the fixture "([^"]*)"$/ do |filename| When /^I upload the fixture "([^"]*)"$/ do |filename|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment