Sha256: 578c65100bd6ad707246354185327bfb4da66e7b1908194431fcb6c9b67ba600
Contents?: true
Size: 793 Bytes
Versions: 6
Compression:
Stored size: 793 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') expect(Maily.http_authorization).to be nil 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
maily-0.6.3 | spec/maily_spec.rb |
maily-0.6.2 | spec/maily_spec.rb |
maily-0.6.1 | spec/maily_spec.rb |
maily-0.6.0 | spec/maily_spec.rb |
maily-0.5.0 | spec/maily_spec.rb |
maily-0.4.0 | spec/maily_spec.rb |