bjeanes (owner)

Revisions

gist: 181588 Download_button fork
public
Public Clone URL: git://gist.github.com/181588.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 'dev@mocra.com'
    
    # ...
  end
end