Sha256: be0245262f7fcce49f7d58be36c0d403fec202b8a074da36f9cc2e66efcf26ee

Contents?: true

Size: 341 Bytes

Versions: 173

Compression:

Stored size: 341 Bytes

Contents

require 'spec_helper'

describe Softcover::Commands::Opener do
  before(:all) { generate_book }
  after(:all)  { remove_book }

  it 'opens in browser' do
    opened = false
    Softcover::Book.any_instance.stub(:open_in_browser) do
      opened = true
    end

    Softcover::Commands::Opener.open!

    expect(opened).to be_true
  end
end

Version data entries

173 entries across 173 versions & 2 rubygems

Version Path
softcover-0.8.9 spec/commands/opener_spec.rb
softcover-0.8.8 spec/commands/opener_spec.rb
softcover-0.8.7 spec/commands/opener_spec.rb
softcover-0.8.6 spec/commands/opener_spec.rb
softcover-0.8.5 spec/commands/opener_spec.rb
softcover-0.8.4 spec/commands/opener_spec.rb
softcover-0.8.3 spec/commands/opener_spec.rb
softcover-0.8.2 spec/commands/opener_spec.rb
softcover-0.8.1 spec/commands/opener_spec.rb
softcover-0.8.0 spec/commands/opener_spec.rb
softcover-0.7.11 spec/commands/opener_spec.rb
softcover-0.7.10 spec/commands/opener_spec.rb
softcover-0.7.9 spec/commands/opener_spec.rb
softcover-0.7.8 spec/commands/opener_spec.rb
softcover-0.7.7 spec/commands/opener_spec.rb
softcover-0.7.6 spec/commands/opener_spec.rb
softcover-0.7.5 spec/commands/opener_spec.rb
softcover-0.7.4 spec/commands/opener_spec.rb
softcover-0.7.3 spec/commands/opener_spec.rb
softcover-0.7.2 spec/commands/opener_spec.rb