Sha256: 4625ce8139f1ec827d2b21030c82777f5c311b2ee34dae42e2097de24e78336c

Contents?: true

Size: 477 Bytes

Versions: 5

Compression:

Stored size: 477 Bytes

Contents

# coding: UTF-8
require 'spec_helper'

describe Snipp do

  before do
    Snipp::Hooks.init
  end

  ITEMTYPES.each do |e|
    describe "no errors" do
      before do
        case e
        when :breadcrumb
          visit "/foods/fruits/Red/Apple"
        else
          visit send("#{e}_path")
        end
      end
      it "should have no errors when visits /#{e}" do
        expect(page).to have_content("#{e.to_s.camelize} - Snippets Sample")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
snipp-0.1.4 spec/snipp_spec.rb
snipp-0.1.3 spec/snipp_spec.rb
snipp-0.1.2 spec/snipp_spec.rb
snipp-0.1.1 spec/snipp_spec.rb
snipp-0.1.0 spec/snipp_spec.rb