Sha256: 3170ccce27c643ecb44910c1e23cdee68042f091227b1658fc5fa8c42952dde3

Contents?: true

Size: 382 Bytes

Versions: 13

Compression:

Stored size: 382 Bytes

Contents

require_relative 'spec_helper'

require 'wright/provider'

# fake provider
class FakeProvider < Wright::Provider
  def initialize
    super(nil)
    @updated = true
  end
end

describe Wright::Provider do
  it 'should reset the updated attribute after checks' do
    provider = FakeProvider.new
    provider.updated?.must_equal true
    provider.updated?.must_equal false
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wright-0.5.0 spec/provider_spec.rb
wright-0.4.4 spec/provider_spec.rb
wright-0.4.3 spec/provider_spec.rb
wright-0.4.2 spec/provider_spec.rb
wright-0.4.1 spec/provider_spec.rb
wright-0.4.0 spec/provider_spec.rb
wright-0.3.2 spec/provider_spec.rb
wright-0.3.1 spec/provider_spec.rb
wright-0.3.0 spec/provider_spec.rb
wright-0.2.0 spec/provider_spec.rb
wright-0.1.2 spec/provider_spec.rb
wright-0.1.1 spec/provider_spec.rb
wright-0.1.0 spec/provider_spec.rb