Permalink
Browse files

Upgrade to Rspec 2

  • Loading branch information...
josh committed Dec 26, 2010
1 parent ec6f23b commit 17a2b4965ca53df9220dc2a18d92ccae5ce3b157
View
@@ -1,7 +1,7 @@
-require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
task :default => :spec
-Spec::Rake::SpecTask.new do |t|
- t.warning = true
+RSpec::Core::RakeTask.new do |t|
+ t.ruby_opts = ["-w"]
end
@@ -1,6 +1,6 @@
require 'user_agent'
-describe "Firefox browser", :shared => true do
+shared_examples_for "Firefox browser" do
it "should return 'Firefox' as its browser" do
@useragent.browser.should == "Firefox"
end
@@ -1,6 +1,6 @@
require 'user_agent'
-describe "Internet Explorer browser", :shared => true do
+shared_examples_for "Internet Explorer browser" do
it "should return 'Internet Explorer' as its browser" do
@useragent.browser.should == "Internet Explorer"
end
@@ -1,6 +1,6 @@
require 'user_agent'
-describe "Opera browser", :shared => true do
+shared_examples_for "Opera browser" do
it "should return 'Opera' as its browser" do
@useragent.browser.should == "Opera"
end
@@ -1,6 +1,6 @@
require 'user_agent'
-describe "Safari browser", :shared => true do
+shared_examples_for "Safari browser" do
it "should return 'Safari' as its browser" do
@useragent.browser.should == "Safari"
end

0 comments on commit 17a2b49

Please sign in to comment.