Sha256: dd8bfccf5ff2cd01032f34277682d20e860d44af8a729e8b7bb5a55f01ec3bb3

Contents?: true

Size: 250 Bytes

Versions: 5

Compression:

Stored size: 250 Bytes

Contents

require_relative '../spec_helper'

describe Dependor::Let do
  class SampleClassUsingLet
    extend Dependor::Let

    let(:foo) { "foo foo" }
  end

  it 'shortens method declaration' do
    SampleClassUsingLet.new.foo.should == "foo foo"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dependor-0.0.5 spec/dependor/let_spec.rb
dependor-0.0.4 spec/dependor/let_spec.rb
dependor-0.0.3 spec/dependor/let_spec.rb
dependor-0.0.2 spec/dependor/let_spec.rb
dependor-0.0.1 spec/dependor/let_spec.rb