Skip to content

Instantly share code, notes, and snippets.

@bjeanes
Created September 6, 2009 01:06
Show Gist options
  • Select an option

  • Save bjeanes/181588 to your computer and use it in GitHub Desktop.

Select an option

Save bjeanes/181588 to your computer and use it in GitHub Desktop.
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe Matrimony do
describe "on first run" do
it "should say that it is on first run" do
open('|-') do |command|
if command.nil?
Matrimony.run # What the gem executable calls
else
command.gets.should =~ /This is your first run/
end
end
end
end
describe "after configuration" do
matrimony_configured_with '[email protected]'
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment