Sha256: c30b5e24d3be603f3fe03da225c8f07f298b78132812c24ffdab0723e69162d3
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
# coding: UTF-8 require 'spec_helper' describe Snipp::Hooks do let(:execute) { lambda { Snipp::Hooks.init } } context "when calls `Snipp::Hooks.init`" do it { expect(execute).not_to raise_error } end context "when `Snipp.config.markup` is invalid" do before do Snipp.configure do |config| config.markup = :undefined end end it { expect(execute).to raise_error(NotImplementedError) } end after do Snipp.configure do |config| config.markup = :microdata end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snipp-0.1.4 | spec/snipp/hooks_spec.rb |
snipp-0.1.3 | spec/snipp/hooks_spec.rb |