changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/spec/spec/story/scenario_spec.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1require File.dirname(__FILE__) + '/story_helper'
2
3module Spec
4 module Story
5 describe Scenario do
6 it 'should not raise an error if no body is supplied' do
7 # given
8 story = StoryBuilder.new.to_story
9
10 # when
11 error = exception_from do
12 Scenario.new story, 'name'
13 end
14
15 # then
16 error.should be_nil
17 end
18 end
19 end
20end