Sha256: f7a13740d521c2a99fa332d71ce5672154b7170347d3bd5eb844833362699108

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 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} - Rich Snippets Sample")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
snipp-0.0.6 spec/snipp_spec.rb
snipp-0.0.5 spec/snipp_spec.rb