Sha256: 4359e7e755aa48f56847d9c65ac7f3b2895b23178c6dd14d3d7e5769ee8d54fb

Contents?: true

Size: 348 Bytes

Versions: 9

Compression:

Stored size: 348 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'
require 'hiroshimarb'
require 'launchy'

describe Hiroshimarb do
  describe '.execute' do
    subject { Hiroshimarb.execute argv }

    let(:argv) { %w{open} }

    before :each do
      Hiroshimarb::Command.should_receive(:find) { proc { "open!!" } }
    end

    it { should eq("open!!") }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hiroshimarb-0.3.1 spec/hiroshimarb_spec.rb
hiroshimarb-0.3.0 spec/hiroshimarb_spec.rb
hiroshimarb-0.2.13 spec/hiroshimarb_spec.rb
hiroshimarb-0.2.12 spec/hiroshimarb_spec.rb
hiroshimarb-0.2.10 spec/hiroshimarb_spec.rb
hiroshimarb-0.2.9 spec/hiroshimarb_spec.rb
hiroshimarb-0.2.8 spec/hiroshimarb_spec.rb
hiroshimarb-0.2.7 spec/hiroshimarb_spec.rb
hiroshimarb-0.2.6 spec/hiroshimarb_spec.rb