Sha256: 3c979414d14c85a9f29b23750bff864a0933adfa15935855e0825d7c8357b810

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

require 'spec_helper'

describe InfinityTest do
  
  describe '#application' do
  
    it "should be a instace of Application" do
      InfinityTest.application.should be_instance_of(InfinityTest::Application)
    end
  
    it "should cache instance variable in the same object" do
      application = InfinityTest.application
      InfinityTest.application.should equal application
    end
  
  end
  
  describe '#configuration' do
    
    it { InfinityTest.configuration.should be_instance_of(InfinityTest::Configuration) }
    
    it "should cache the instance of configuration class" do
      configuration = InfinityTest.configuration
      configuration.should equal InfinityTest.configuration
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
infinity_test-0.2.0 spec/infinity_test_spec.rb
infinity_test-0.1.0 spec/infinity_test_spec.rb