spec/lib/armoire_spec.rb in armoire-1.3.0 vs spec/lib/armoire_spec.rb in armoire-1.4.0
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
describe Armoire do
- describe '#.environment' do
+ describe '#environment' do
subject { described_class.instance.environment }
before do
described_class.environment = nil
end
@@ -150,8 +150,16 @@
end
end
after do
Armoire.load! File.expand_path('../fixtures/application.yml', File.dirname(__FILE__))
+ end
+ end
+
+ describe '.environment' do
+ subject { Armoire.environment }
+
+ it "returns the current environment armoire is set to read" do
+ expect(subject).to eql("test")
end
end
end