Sha256: 1401e1306567f94fa7fb5b3f76ea2ca46b29571b54dcdf435e4b8d8d522ca8b3

Contents?: true

Size: 306 Bytes

Versions: 14

Compression:

Stored size: 306 Bytes

Contents

RSpec::Matchers.define :run do
  command = Command::Runner.new("node", "")
  match do |data|
    @output = Liquidscript.compile(data)
    @message = command.run({}, :input => @output)
    @message.successful?
  end

  failure_message_for_should do
    "Expected to run, got:\n#{@message.stderr}"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
liquidscript-0.7.12 spec/support/matchers/run.rb
liquidscript-0.7.11 spec/support/matchers/run.rb
liquidscript-0.7.10 spec/support/matchers/run.rb
liquidscript-0.7.9 spec/support/matchers/run.rb
liquidscript-0.7.8 spec/support/matchers/run.rb
liquidscript-0.7.7 spec/support/matchers/run.rb
liquidscript-0.7.6 spec/support/matchers/run.rb
liquidscript-0.7.5 spec/support/matchers/run.rb
liquidscript-0.7.4 spec/support/matchers/run.rb
liquidscript-0.7.3 spec/support/matchers/run.rb
liquidscript-0.7.2 spec/support/matchers/run.rb
liquidscript-0.7.1 spec/support/matchers/run.rb
liquidscript-0.7.0 spec/support/matchers/run.rb
liquidscript-0.6.5 spec/support/matchers/run.rb