Created
September 6, 2009 01:06
-
-
Save bjeanes/181588 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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