Sha256: be0245262f7fcce49f7d58be36c0d403fec202b8a074da36f9cc2e66efcf26ee

Contents?: true

Size: 341 Bytes

Versions: 172

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

172 entries across 172 versions & 2 rubygems

Version Path
softcover-1.2.4 spec/commands/opener_spec.rb
softcover-1.2.3 spec/commands/opener_spec.rb
softcover-1.2.2 spec/commands/opener_spec.rb
softcover-1.2.1 spec/commands/opener_spec.rb
softcover-1.2.0 spec/commands/opener_spec.rb
softcover-1.1.28 spec/commands/opener_spec.rb
softcover-1.1.27 spec/commands/opener_spec.rb
softcover-1.1.23 spec/commands/opener_spec.rb
softcover-1.1.22 spec/commands/opener_spec.rb
softcover-1.1.21 spec/commands/opener_spec.rb
softcover-1.1.20 spec/commands/opener_spec.rb
softcover-1.1.19 spec/commands/opener_spec.rb
softcover-1.1.18 spec/commands/opener_spec.rb
softcover-1.1.17 spec/commands/opener_spec.rb
softcover-1.1.16 spec/commands/opener_spec.rb
softcover-1.1.15 spec/commands/opener_spec.rb
softcover-1.1.14 spec/commands/opener_spec.rb
softcover-1.1.13 spec/commands/opener_spec.rb
softcover-1.1.12 spec/commands/opener_spec.rb
softcover-1.1.11 spec/commands/opener_spec.rb