Sha256: d5311ae16390c06f733c3d47fe4777a22bb7b5d53e1921e8b454bb3f4bfde370

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

shared_examples "pickfile should be written successfully" do
  before(:each) do
    today_in_utc = Time.now.utc.to_date.strftime

    Kernel.should_receive(:spawn)
      .with("$EDITOR #{toothpick_home}/#{today_in_utc}.md")
      .and_return('pid')
    Process.should_receive(:waitpid).with('pid')
    $?.should_receive(:success?).and_return(true)
    File.should_receive(:exists?).and_return(true)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toothpick-0.0.2 spec/support/pickfile_shared_examples.rb