Update to rspec 2.1.0.
This commit is contained in:
6
Gemfile
6
Gemfile
@@ -7,9 +7,9 @@ gem "thor", ">= 0.14.0"
|
|||||||
# Include everything needed to run rake, tests, features, etc.
|
# Include everything needed to run rake, tests, features, etc.
|
||||||
group :development do
|
group :development do
|
||||||
gem "rake"
|
gem "rake"
|
||||||
gem "rspec", ">= 1.2.9"
|
gem "rspec", "~> 2.1.0"
|
||||||
gem "bundler", ">= 0.9.5"
|
gem "bundler", "~> 1.0.0"
|
||||||
gem "jeweler", ">= 1.5.0.pre2"
|
gem "jeweler", ">= 1.5.0.pre6"
|
||||||
gem "rcov", ">= 0"
|
gem "rcov", ">= 0"
|
||||||
gem "test-construct"
|
gem "test-construct"
|
||||||
end
|
end
|
||||||
|
|||||||
18
Gemfile.lock
18
Gemfile.lock
@@ -1,14 +1,22 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
diff-lcs (1.1.2)
|
||||||
git (1.2.5)
|
git (1.2.5)
|
||||||
jeweler (1.5.0.pre3)
|
jeweler (1.5.0.pre6)
|
||||||
bundler (~> 1.0.0)
|
bundler (~> 1.0.0)
|
||||||
git (>= 1.2.5)
|
git (>= 1.2.5)
|
||||||
rake
|
rake
|
||||||
rake (0.8.7)
|
rake (0.8.7)
|
||||||
rcov (0.9.8)
|
rcov (0.9.8)
|
||||||
rspec (1.3.0)
|
rspec (2.1.0)
|
||||||
|
rspec-core (~> 2.1.0)
|
||||||
|
rspec-expectations (~> 2.1.0)
|
||||||
|
rspec-mocks (~> 2.1.0)
|
||||||
|
rspec-core (2.1.0)
|
||||||
|
rspec-expectations (2.1.0)
|
||||||
|
diff-lcs (~> 1.1.2)
|
||||||
|
rspec-mocks (2.1.0)
|
||||||
test-construct (1.2.0)
|
test-construct (1.2.0)
|
||||||
thor (0.14.0)
|
thor (0.14.0)
|
||||||
|
|
||||||
@@ -16,10 +24,10 @@ PLATFORMS
|
|||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bundler (>= 0.9.5)
|
bundler (~> 1.0.0)
|
||||||
jeweler (>= 1.5.0.pre2)
|
jeweler (>= 1.5.0.pre6)
|
||||||
rake
|
rake
|
||||||
rcov
|
rcov
|
||||||
rspec (>= 1.2.9)
|
rspec (~> 2.1.0)
|
||||||
test-construct
|
test-construct
|
||||||
thor (>= 0.14.0)
|
thor (>= 0.14.0)
|
||||||
|
|||||||
11
Rakefile
11
Rakefile
@@ -30,18 +30,17 @@ end
|
|||||||
Jeweler::GemcutterTasks.new
|
Jeweler::GemcutterTasks.new
|
||||||
|
|
||||||
|
|
||||||
require 'spec/rake/spectask'
|
require 'rspec/core/rake_task'
|
||||||
Spec::Rake::SpecTask.new(:spec) do |spec|
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
||||||
spec.libs << 'lib' << 'spec'
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
||||||
spec.spec_files = FileList['spec/**/*_spec.rb']
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
||||||
spec.libs << 'lib' << 'spec'
|
|
||||||
spec.pattern = 'spec/**/*_spec.rb'
|
spec.pattern = 'spec/**/*_spec.rb'
|
||||||
spec.rcov = true
|
spec.rcov = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
task :default => :spec
|
task :default => :spec
|
||||||
|
|
||||||
require 'rake/rdoctask'
|
require 'rake/rdoctask'
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
||||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'homesick'
|
require 'homesick'
|
||||||
require 'spec'
|
require 'rspec'
|
||||||
require 'spec/autorun'
|
require 'rspec/autorun'
|
||||||
require 'construct'
|
require 'construct'
|
||||||
|
|
||||||
Spec::Runner.configure do |config|
|
Rspec.configure do |config|
|
||||||
config.include Construct::Helpers
|
config.include Construct::Helpers
|
||||||
|
|
||||||
config.before do
|
config.before do
|
||||||
|
|||||||
Reference in New Issue
Block a user