spec/generators/roboto/install_generator_spec.rb in roboto-0.2.0 vs spec/generators/roboto/install_generator_spec.rb in roboto-1.0.0

- old
+ new

@@ -15,20 +15,20 @@ end ["roboto_env", "staging", "production"].each do |env| describe 'config/robots/#{env}.txt' do subject { file("config/robots/#{env}.txt") } - it { should exist } - it { should contain "User-Agent: *" } - it { should contain "Disallow: /" } + it { is_expected.to exist } + it { is_expected.to contain "User-Agent: *" } + it { is_expected.to contain "Disallow: /" } end end describe 'config/routes.rb' do subject { file('config/routes.rb') } - it { should exist } - it { should contain "mount_roboto" } + it { is_expected.to exist } + it { is_expected.to contain "mount_roboto" } end end def create_routes_rb routes = File.expand_path("../../../dummy/config/routes.rb", __FILE__) @@ -40,6 +40,6 @@ def create_fake_env destination = File.join(destination_root, "config/environments") FileUtils.mkdir_p(destination) @env_availabe.each {|env| FileUtils.touch(destination_root + "/config/environments/#{env}.rb")} end -end \ No newline at end of file +end