Sha256: cf8057ff8500ddfcdbf0e6b35e976fdb62d0d6d67bb9f34813649001c7e4348f

Contents?: true

Size: 615 Bytes

Versions: 22

Compression:

Stored size: 615 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe "Remote Instance" do
  before(:each) do
    @tc = TestBaseClass.new do
    end
  end
  it "should have the method has_line_in_file available on the class" do
    @tc.respond_to?(:has_line_in_file).should == true
  end
  describe "call" do
    before(:each) do
      @tc.run_in_context do
        has_line_in_file({:line => 'hi', :file => "ho"})
      end
      @compiled = PuppetResolver.new(@tc.to_properties_hash).compile
    end
    it "should have the line in the file from PuppetResolver" do
      @compiled.should match(/grep -q/)
    end
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
auser-poolparty-1.1.1 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.1.3 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.1.4 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.1.5 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.1.6 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.1.7 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.0 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.1 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.10 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.11 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.12 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.2 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.3 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.4 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.7 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.8 spec/poolparty/plugins/line_spec.rb
auser-poolparty-1.2.9 spec/poolparty/plugins/line_spec.rb
fairchild-poolparty-1.1.3 spec/poolparty/plugins/line_spec.rb
fairchild-poolparty-1.1.4 spec/poolparty/plugins/line_spec.rb
fairchild-poolparty-1.1.5 spec/poolparty/plugins/line_spec.rb