spec/support/shared_matcher_examples.rb in serverspec-0.1.3 vs spec/support/shared_matcher_examples.rb in serverspec-0.1.4
- old
+ new
@@ -30,9 +30,18 @@
end
describe 'this-is-invalid-daemon' do
it { should_not be_running }
end
+
+ describe valid_service do
+ before :all do
+ RSpec.configure do |c|
+ c.stdout = "#{valid_service} is stopped\r\n"
+ end
+ end
+ it { should be_running }
+ end
end
end
shared_examples_for 'support be_listening matcher' do |valid_port|
describe 'be_listening' do