1 require File.dirname(__FILE__) + '/spec_helper'
3 def behave_as_electric_musician
4 respond_to(:read_notes, :turn_down_amp)
8 respond_to(:read_notes)
11 module BehaveAsExample
15 def turn_down_amp; end
20 def turn_down_amp; end
23 class ClassicGuitarist
27 describe BluesGuitarist do
28 it "should behave as guitarist" do
29 BluesGuitarist.new.should behave_as_electric_musician
33 describe RockGuitarist do
34 it "should behave as guitarist" do
35 RockGuitarist.new.should behave_as_electric_musician
39 describe ClassicGuitarist do
40 it "should not behave as guitarist" do
41 ClassicGuitarist.new.should behave_as_musician