features/step_definitions/configuration_steps.rb in activeadmin-1.0.0.pre5 vs features/step_definitions/configuration_steps.rb in activeadmin-1.0.0

- old
+ new

@@ -28,11 +28,11 @@ # If the file originally had content, override the stuff on disk. # Else, remove the file and its parent folder structure until Rails.root OR other files exist. def rollback_file(file, contents) if contents.present? - File.open(file,'w') { |f| f << contents } + File.open(file, 'w') { |f| f << contents } else File.delete(file) begin dir = File.dirname(file) until dir == Rails.root @@ -85,10 +85,10 @@ Given /^"([^"]*)" contains:$/ do |filename, contents| path = Rails.root + filename FileUtils.mkdir_p File.dirname path record path - File.open(path,'w+'){ |f| f << contents } + File.open(path, 'w+'){ |f| f << contents } end Given /^I add "([^"]*)" to the "([^"]*)" model$/ do |code, model_name| path = File.join Rails.root, "app", "models", "#{model_name}.rb" record path