Sha256: b0dcf12471c046dc284d459f8f351084e82ce3f8acb1abcfae515c172f85e9bc

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

describe "Scientist" do
  it "with debug option prints debug" do
    capture_stdout { command_with_args("-v ok") }.should =~ /Arguments.*ok/
  end

  it "with pretend option prints arguments and returns early" do
    Scientist.expects(:process_result).never
    capture_stdout { command_with_args("-p ok") }.should =~ /Arguments.*ok/
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boson-more-0.2.1 test/more_scientist_test.rb
boson-more-0.2.0 test/more_scientist_test.rb
boson-more-0.1.0 test/more_scientist_test.rb