Sha256: bee1288ef4c0adf8eee78845b18241203f1d8fa634721351506ddb51b406afbb

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

require 'spec_helper'

describe Gitstagram::Snapshot do

  describe "#smile" do
    before do
      stub(Time).now { 123 }
      command = "#{Gitstagram.tools_path}/imagesnap -q -w 3 #{Gitstagram.saving_path}/123.jpg &"
      mock(Gitstagram::SystemCaller).call(command)
    end

    it "should take a snapshot" do
      Gitstagram::Snapshot.smile
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitstagram-0.0.5 spec/snapshot_spec.rb