Sha256: 640569cf7ad461b85c2ce13e2a4a4786e025446af68ae4326e30cdad302d176e
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
require 'spec_helper' describe Maily do it "should set up with defaults if no block provided" do Maily.setup expect(Maily.enabled).to be true expect(Maily.allow_edition).to be true expect(Maily.allow_delivery).to be true expect(Maily.available_locales).to eq(I18n.available_locales) expect(Maily.base_controller).to eq('ActionController::Base') end it "should not allow edition if edition is disabled" do Maily.allow_edition = false expect(Maily.allowed_action?(:edit)).to be false expect(Maily.allowed_action?(:update)).to be false end it "should not allow delivery if delivery is disabled" do Maily.allow_delivery = false expect(Maily.allowed_action?(:deliver)).to be false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maily-0.3.5 | spec/maily_spec.rb |
maily-0.3.4 | spec/maily_spec.rb |