spec/lib/rda/nginx_spec.rb in rda-0.0.3 vs spec/lib/rda/nginx_spec.rb in rda-0.0.4
- old
+ new
@@ -98,11 +98,11 @@
# creates a symbol link to the nginx config file of the rails
# application
subject.should_receive(:link_file).with("#{dummy_path}/sites-available/dummy.local", "#{dummy_path}/sites-enabled/dummy.local")
# creates a local hostname for the rails application
- subject.should_receive(:append_file).with("/etc/hosts", "dummy.local 127.0.0.1")
+ subject.should_receive(:append_file).with("/etc/hosts", "127.0.0.1 dummy.local")
subject.setup
end
end
end
@@ -122,10 +122,10 @@
Rda.configure { nginx_conf_paths [Rda::Nginx::DEFAULT_CONF_PATHS] }
end
it 'discards the settings' do
- subject.should_receive(:gsub_file).with("/etc/hosts", "dummy.local 127.0.0.1", '')
+ subject.should_receive(:gsub_file).with("/etc/hosts", "127.0.0.1 dummy.local", '')
%W(enabled available).each do |n|
subject.should_receive(:remove_file).with("#{dummy_path}/sites-#{n}/dummy.local")
end
subject.should_receive(:remove_file).with("#{::Rails.root}/config/setup_load_paths.rb")