Skip to content

Commit

Permalink
downgrade rspec to 2.99
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed Dec 9, 2014
1 parent d3d7874 commit 9bc084f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -13,7 +13,8 @@ end
# installed on Travis CI
#
group :test do
gem 'rspec', require: false
# gem 'rspec', '~> 3.1', require: false
gem 'rspec', '~> 2.99', require: false
gem 'fakefs', require: false
gem 'coveralls', require: false
end
Expand Down
6 changes: 3 additions & 3 deletions spec/guard/less_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
require "guard/less"

describe Guard::Less do
RSpec.describe Guard::Less do
include FakeFS::SpecHelpers

let(:guard) { Guard::Less.new }
Expand Down Expand Up @@ -154,7 +154,7 @@

context 'but LESS file has an import more recently modified than CSS' do
before do
write_stub_less_file('yes/a.less', import=true)
write_stub_less_file('yes/a.less', true)
# touch with :mtime option doesn't seem to work?
FileUtils.touch(['yes/a.css', 'yes/b.less'])
File.utime(Time.now - 5, Time.now - 5, 'yes/a.less')
Expand Down
38 changes: 26 additions & 12 deletions spec/spec_helper.rb
@@ -1,17 +1,31 @@
if ENV['CI']
require 'coveralls'
Coveralls.wear!
end

require 'guard/less'
require 'rspec'
require 'fakefs/spec_helpers'

ENV['GUARD_ENV'] = 'test'

RSpec.configure do |config|
config.color_enabled = true
config.filter_run focus: true
config.expect_with :rspec do |expectations|
# TODO: restore
# expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end

config.mock_with :rspec do |mocks|
# TODO: restore
# mocks.verify_partial_doubles = true
end

config.filter_run :focus
config.run_all_when_everything_filtered = true
config.treat_symbols_as_metadata_keys_with_true_values = true

# TODO: restore
# config.disable_monkey_patching!

config.warnings = true

if config.files_to_run.one?
config.default_formatter = 'doc'
end

# config.profile_examples = 10

config.order = :random

Kernel.srand config.seed
end

0 comments on commit 9bc084f

Please sign in to comment.