ruby - Trying to learn rspec and TDD -


i'm having troubles syntax error don't why. i'm doing example of 'the rspec book' , i've got point can't go ahead. when write in console rspec spec/codebreaker/game_spec.rb --format doc message: syntax error, unexpected keyword_end, expecting end-of-input (syntaxerror) i've fixed error thousands of time, no matter can't figure out whats going on.

this code of spec/codebreaker/game_spec.rb

require 'spec_helper'    module codebreaker    describe game      describe "#start"        "sends welcome message"          output = double('output')          game = game.new(output)          output.should_receive(:puts).with('welcome codebreaker!')          game.start        end        "prompts first guess"      end    end  end 

i've added 'end' , i've removed doesn't work way. may i'm missing somethig deprecated syntax or something. lot.

you should add after it: it "sends welcome message" do


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -