Skip to content

Commit a3b5ce6

Browse files
committed
Merge branch 'rspec2'
Conflicts: Rakefile
2 parents 2757697 + c557e90 commit a3b5ce6

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

Rakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'bundler/setup'
2-
require 'spec/rake/spectask'
2+
require 'rspec/core/rake_task'
33
Bundler::GemHelper.install_tasks
4-
Spec::Rake::SpecTask.new
4+
RSpec::Core::RakeTask.new(:spec)
55
task :default => :spec
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
ENV['TAZA_ENV'] = "isolation" if ENV['TAZA_ENV'].nil?
22
require 'rubygems'
3-
require 'spec'
3+
require 'rspec'
44
require 'mocha'
55

66
lib_path = File.expand_path("#{File.dirname(__FILE__)}/../lib/sites")
77
$LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
88

9-
Spec::Runner.configure do |config|
9+
RSpec.configure do |config|
1010
config.mock_with :mocha
11-
end
11+
end

lib/taza.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'active_support/all'
2+
require 'rspec'
23
require 'taza/page'
34
require 'taza/site'
45
require 'taza/browser'

lib/taza/tasks.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'rubygems'
22
require 'rake'
33
require 'taglob'
4-
require 'spec/rake/spectask'
4+
require 'rspec/core/rake_task'
55

66
def tags
77
ENV['TAGS']
@@ -18,9 +18,9 @@ def initialize
1818
end
1919

2020
def define_spec_task(name,glob_path)
21-
Spec::Rake::SpecTask.new name do |t|
22-
t.spec_files = Dir.taglob(glob_path,tags)
23-
t.spec_opts << spec_opts
21+
RSpec::Core::RakeTask.new name do |t|
22+
t.pattern = Dir.taglob(glob_path,tags)
23+
t.rspec_opts = spec_opts
2424
end
2525
end
2626

spec/array_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
require 'extensions/array'
33

44
describe 'Array Extensions' do
5-
it "should know if elements are not equivilent to a subset of those elements" do
5+
it "should know if elements are not equivalent to a subset of those elements" do
66
[1,2,3].should_not be_equivalent([2,3])
77
end
8-
it "should know if elements are not equivilent to a larger set including those elements" do
8+
it "should know if elements are not equivalent to a larger set including those elements" do
99
[1,2,3].should_not be_equivalent([1,2,3,4])
1010
end
1111
it "should know it is equivalent if the same order" do

spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require 'rubigen/helpers/generator_test_helper'
55
require 'taza'
66
require 'Selenium'
7-
Spec::Runner.configure do |config|
7+
RSpec.configure do |config|
88
config.mock_with :mocha
99
end
1010

taza.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
1616
s.add_runtime_dependency(%q<taglob>, ["~> 1.1.1"])
1717
s.add_runtime_dependency(%q<rake>, ["~> 0.8.3"])
1818
s.add_runtime_dependency(%q<mocha>, ["~> 0.9.3"])
19-
s.add_runtime_dependency(%q<rspec>, ["~> 1.1.12"])
19+
s.add_runtime_dependency(%q<rspec>, ["~> 2.0.0"])
2020
s.add_runtime_dependency(%q<rubigen>, ["~> 1.5.6"])
2121
s.add_runtime_dependency(%q<user-choices>, ["~> 1.1.6.1"])
2222
s.add_runtime_dependency(%q<Selenium>, ["~> 1.1.14"])

0 commit comments

Comments
 (0)