Skip to content
Browse files

Fix interactor DSL spec.

  • Loading branch information...
1 parent 455489c commit 72af734a76cb106b9477f24eccabcbbd27de6816 @netzpirat netzpirat committed Sep 17, 2012
Showing with 4 additions and 8 deletions.
  1. +1 −1 lib/guard/dsl.rb
  2. +3 −7 spec/guard/dsl_spec.rb
View
2 lib/guard/dsl.rb
@@ -335,7 +335,7 @@ def notification(notifier, options = {})
# @deprecated
#
def interactor(interactor)
- ::Guard::UI.deprecation(IINTERACTOR_DEPRECATION)
+ ::Guard::UI.deprecation(INTERACTOR_DEPRECATION)
end
# Declares a group of Guard plugins to be run with `guard start --group group_name`.
View
10 spec/guard/dsl_spec.rb
@@ -370,14 +370,10 @@ def self.disable_user_config
describe "#interactor" do
disable_user_config
- it 'sets the interactor implementation' do
- ::Guard::Interactor.should_receive(:interactor=).with(:readline)
- described_class.evaluate_guardfile(:guardfile_contents => 'interactor :readline')
- end
+ it "sets the interactor implementation" do
+ ::Guard::UI.should_receive(:deprecation).with(described_class::INTERACTOR_DEPRECATION)
- it 'converts the interactor to a symbol' do
- ::Guard::Interactor.should_receive(:interactor=).with(:readline)
- described_class.evaluate_guardfile(:guardfile_contents => 'interactor "readline"')
+ described_class.evaluate_guardfile(:guardfile_contents => "interactor :coolline")
end
end

0 comments on commit 72af734

Please sign in to comment.
Something went wrong with that request. Please try again.