changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec_on_rails/spec/rails/example/shared_behaviour_spec.rb

changeset 16: 01fd3f10ae84
author: moriq@moriq.com
date: Mon Mar 10 10:13:18 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec_on_rails
1require File.dirname(__FILE__) + '/../../spec_helper'
2
3describe "A shared view example_group", :shared => true do
4 it "should have some tag with some text" do
5 response.should have_tag('div', 'This is text from a method in the ViewSpecHelper')
6 end
7end
8
9describe "A view example_group", :type => :view do
10 it_should_behave_like "A shared view example_group"
11
12 before(:each) do
13 render "view_spec/implicit_helper"
14 end
15end
16