Sha256: 957585c7d5a59ca8cecb36a246bc3765db1b671962a3f715ef012f586b69230f
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
require "spec_helper" describe Vault do describe ".application" do it "returns the application" do Vault.instance_variable_set(:@application, "test") expect(Vault.application).to eq("test") end it "raises an error if unset" do Vault.instance_variable_set(:@application, nil) expect { Vault.application }.to raise_error end end describe ".application=" do it "sets the value" do Vault.application = "test" expect(Vault.instance_variable_get(:@application)).to eq("test") end end describe "Rails" do it "is defined" do expect { Vault.const_get(:Rails) }.to_not raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vault-rails-0.1.1 | spec/unit/rails_spec.rb |
vault-rails-0.1.0 | spec/unit/rails_spec.rb |