Sha256: 24eb908d2ced36096e67d0e360b04717b04b171c4d95d5730b3e209be5e26d5d

Contents?: true

Size: 336 Bytes

Versions: 8

Compression:

Stored size: 336 Bytes

Contents

require 'spec_helper'

describe Stylus::Runtime do
  it 'raises an error if the runtime is not available' do
    allow(Stylus).to receive(:runtime) { double('An unavailable Runtime', available?: false) }

    expect {
      Stylus.version
    }.to raise_error RuntimeError, %r[The Node.JS runtime is not available to Stylus.]
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
epuber-stylus-1.2.0 spec/runtime_spec.rb
nov-stylus-1.0.3 spec/runtime_spec.rb
nov-stylus-1.0.2 spec/runtime_spec.rb
stylus-1.0.2 spec/runtime_spec.rb
epuber-stylus-1.1.1 spec/runtime_spec.rb
epuber-stylus-1.1.0 spec/runtime_spec.rb
stylus-1.0.1 spec/runtime_spec.rb
stylus-1.0.0 spec/runtime_spec.rb