Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Remove the compiled .rbc file from Rubinius so it will regenerate
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sikachu committed Nov 18, 2011
1 parent 0e8b874 commit 2c08152
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions features/step_definitions/attachment_steps.rb
Expand Up @@ -10,15 +10,12 @@ def attachment_path(filename)
World(AttachmentHelpers)

When /^I modify my attachment definition to:$/ do |definition|
in_current_dir do
File.open("app/models/user.rb", "w") do |file|
file.write <<-FILE
class User < ActiveRecord::Base
#{definition}
end
FILE
write_file "app/models/user.rb", <<-FILE
class User < ActiveRecord::Base
#{definition}
end
end
FILE
remove_file 'app/models/user.rbc' rescue nil
end

When /^I upload the fixture "([^"]*)"$/ do |filename|
Expand Down

0 comments on commit 2c08152

Please sign in to comment.