Skip to content

Commit

Permalink
Add rspec 2.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ruedap committed Dec 8, 2013
1 parent abd7220 commit 60f2b3a
Show file tree
Hide file tree
Showing 12 changed files with 6,271 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -6,7 +6,7 @@ rvm:
script:
- cd workflow
- bundle install --standalone --clean
- bundle exec rake test
- bundle exec rake
notifications:
hipchat:
rooms:
Expand Down
8 changes: 4 additions & 4 deletions Rakefile
Expand Up @@ -88,9 +88,9 @@ task :clobber => [:clean] do
rmtree File.join($config["path"], "coverage")
end

desc "Run tests"
task :test => [:chdir] do
Rake::Task[:test].invoke
desc "Run RSpec"
task :spec => [:chdir] do
Rake::Task[:spec].invoke
end

task :default => :test
task :default => :spec
1 change: 1 addition & 0 deletions workflow/Gemfile
Expand Up @@ -5,6 +5,7 @@ gem 'htmlentities', '4.3.1'

group :test do
gem 'minitest', '5.0.8'
gem 'rspec', '2.14.1'
gem 'rake', '10.1.0'
gem 'coveralls', '0.7.0', :require => false
end
10 changes: 10 additions & 0 deletions workflow/Gemfile.lock
Expand Up @@ -7,6 +7,7 @@ GEM
simplecov (>= 0.7)
term-ansicolor
thor
diff-lcs (1.2.5)
htmlentities (4.3.1)
mime-types (1.25)
minitest (5.0.8)
Expand All @@ -15,6 +16,14 @@ GEM
rake (10.1.0)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.4)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
Expand All @@ -33,3 +42,4 @@ DEPENDENCIES
minitest (= 5.0.8)
plist (= 3.1.0)
rake (= 10.1.0)
rspec (= 2.14.1)
7 changes: 6 additions & 1 deletion workflow/Rakefile
Expand Up @@ -3,4 +3,9 @@ Rake::TestTask.new do |t|
t.pattern = 'test/*_test.rb'
end

task :default => :test
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
end

task :default => :spec
10 changes: 10 additions & 0 deletions workflow/spec/fixtures.rb
@@ -0,0 +1,10 @@
module Fixtures
path = File.expand_path('./test/fixtures/font-awesome-4-0-2-icons.yml')
ICONS = YAML.load_file(path)['icons']

def self.icon_ids
ids = ICONS.map { |icon| icon['id'] }
aliases = ICONS.map { |icon| icon['aliases'] }.compact.flatten
(ids + aliases).sort
end
end

0 comments on commit 60f2b3a

Please sign in to comment.