search for: story

Displaying 20 results from an estimated 4867 matches for "story".

Did you mean: store
2007 Nov 15
5
What command to run all stories?
Hi, I''ve been following this thread and I can get the example stories to run with the ruby command. But I''ve been unable to get the example from http://blog.davidchelimsky.net/articles/2007/10/25/plain-text-stories-part-iii to run with all.rb ruby stories/all.rb /home/edh/story/stories/additions/steps/addition_steps.rb:2: undefined method `steps_for'' for main:Object (NoMethodError) from /home/edh/story/stories/all.rb:3:in `require'' from /home/edh/story/stories/all.rb:3 from /home/edh/story/stories/all.rb:2:in `each''...
2009 Sep 29
5
NoMethodError in Stories#show
...---------------------------------------------------------------------------- Showing app/views/stories/show.html.rb where line #1 raised: You have a nil object when you didn''t expect it! The error occurred while evaluating nil.name Extracted source (around line #1): 1: <h2><%= @story.name %></h2> 2: <p><%= link_to @story.link, @story.link %></p> RAILS_ROOT: /Users/pdenlinger/Sites/In_Development/shovell Application Trace | Framework Trace | Full Trace app/views/stories/show.html.rb:1 /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/ rende...
2007 Oct 17
9
plain text stories: motivation number 27
...ojects at work. I''m organizing iterations as milestones and stories as tickets tagged to a milestone. Lighthouse offers an API so that you can write access the data in your account and write apps to process that data. I think you see where this is going. It seems to me that a plain text story could be stored in a lighthouse ticket, read in via the lighthouse API ... AND EXECUTED BY STORY RUNNER. Call me crazy :) Sure, this is theoretical in terms of lighthouse - but it reveals an important benefit of plain text stories: it would be possible to express stories in any of a variety of sy...
2007 Dec 21
4
StoryRunner docs/guidance
Hi all, Are there any plans for better documentation for the new StoryRunner feature? I tried to use it today (with Rails), and had a hard time getting my head around whether I was doing it "right" and exactly what things are appropriate to test at that level (this might be exacerbated by the fact that I''ve never really used integration testing that...
2007 Oct 05
2
Stories VS Scenarios
Hi all, I have read Dan North''s post ''Whats in a Story?'' (http://dannorth.net/whats-in-a-story) but I am still having a hard time knowing when I should break requirements up into separate stories or keep them as scenarios. I am currently trying to write a story (stories) for the registration process of a site. The registration process i...
2008 Jan 14
6
RSpec stories introduction
...d tour of what should go where and how each file should be called to implement stories. For the moment I have placed everything in ./stories, although I am nearly certain that this is not the way to go. I have created a file called "new_job.txt" in ./stories that contains this: ---> Story: open a new job As an authorized user I want to open a new job So that I can do work For a client Scenario: client is active Given client exists in database And client status is active When I add a new job Then a job number is automatically assigned And a job_parties...
2010 Jun 17
7
Why do rails calls a method when I'm calling a property?
...before_filter :login_required, :only => [ :new, :create] def index get_stories ''votes_count >= 5'' end def bin get_stories '''' render :action => ''index'' end protected def get_stories(conditions) @stories = Story.find :all, :order => ''id DESC'', :conditions => conditions end def new @story = Story.new end def create #@story = Story.new(params[:story]) @story = @current_user.stories.build params[:story] if @story.save flash[:notice] = "La historia a...
2007 Dec 31
4
How to run stories with `spec'' command?
Hi, all! I have a story steps array.rb and the story array.story. I can run it with ruby array.rb But when I execute spec array.rb nothing happened. I''m wondering how can I use spec command to execute stories? (executing examples is OK) Or maybe another question. If I have to run stories with `ruby'...
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is in progress, where could I start to try and build one? JD
2005 Dec 23
6
Stories with many tags, tags with many stories, has_and_belongs_to_many howto?
Hi, I began experimenting with habtm relationships, and so I created a stories table, a tags table, and a stories_tags table referencing the former 2. When I create a "story", I want to add several tags to it. Then, the model should create those tags and link them to the respective stories, and for the tags that already exists, just link them to the story. I tried something like this (snippets): class Tag < ActiveRecord::Base def self.create(taglist)...
2008 Jun 10
2
validates_associated doesn't work on update (and i've tried :on => :update)
HI all- I have two models, Story and Tag, and they are habtm. My goal is to show the errors for @story in a form on both new and edit. Everything works fine on new/create, but it fails on edit/update. First the models: class Story < ActiveRecord::Base attr_accessor :tag_string_holder #holds a CSV of tags ... has_and_bel...
2007 Sep 14
2
Mocks in StoryRunner
Hi, I''m trying to get up and running with StoryRunner. I have a story that looks something like the following, but the call to mock_model produces the exception listed below. Am I just misunderstanding the concept? Are mocks not meant to be used in stories like this? Or is this a bug? Changing @user to be an actual AR object makes things run wit...
2008 Mar 11
6
Story testing views in isolation
Hi, I''ve been investigating plain text stories, and I had a quick question. How would I go about creating story tests for views in isolation, instead of the full stack? I had hoped to be able to do a straight render ''/'', but it says it can''t find the method. The reason that I want to do this is that I want to give our designer/business people a way to write stories to describe the...
2008 Jul 08
3
undefined method `name' ...........
...without result, so I will try this.... I''m learning ROR, and I''m using Patrick Lens ''Ruby on Rails'' book. (This is written for ror 1.x - and I''m using NetBeans 6.1 - ror 2.x - this might be the problem...) But... I have made this Controller: class StoryController < ApplicationController def index @current_time = Time.now @s = Story.find_all_by_name(''sitepoint'') end end and this view: <h1>Story#index</h1> hej <%= @current_time %> <%= @s.name%> <p>Find me in app/views/story/index.html....
2007 Oct 16
6
RailsStory runner - empty response
I generated a new rails app then installed rspec and rspec_on_rails from trunk. I then created a sample story: require File.dirname(__FILE__) + "/helper" Story "View Home Page", %{ As a user I want to view my home page So that I can get a birds eye view of the system }, :type => RailsStory do Scenario "Publisher with no videos" do When "visiting&quo...
2007 Oct 15
4
Stories location
Should the stories dir be located on the project root? I was expecting to find it located under spec/ but there isn''t anything there, just the stories dir off of /. Also there don''t appear to be any rake tasks for stories, nor generators. Should there be any? Thanks, Steve
2008 Mar 20
5
sharing story steps
Hi, How can I have a common set of steps that all my stories share? i.e. My stories often start out looking like this: Given a user Joe Given a user Jordan then: Given("a user $username") do |username| @users ||= {} @user_sessions ||= {} @users[username] = create_user(:username => username) @user_sessions[username] = login_as(@users[username]) end I want to share that
2008 May 27
4
Failing rspec story not causing a CruiseControl.rb build to fail?
We''ve just added rspec stories to our CruiseControl.rb build. When there''s a failing scenario we see the failure in the log output, but it doesn''t cause the CruiseControl build to fail. We''ve also just upgraded to the latest rspec version, 1.1.4, which fixes rspec bug 228, but the CC.rb build is still passing. Has anyone got failing rspec stories making
2007 Sep 20
10
Getting Started with Story Runner
I haven''t found any How To''s to use story runner and I''m not sure how to get started. Should I be looking for resources on how to use rbehave? How do I generate my first Story? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070920/07a80bc7/at...
2008 Jun 02
7
Pretty HTML reporting for stories
...rying to put together a showy demo. We''re trying to use the (plain text) stories feature, rather than the specs. I''d like to show off a fancy HTML report of the results if possible. So it seems I can do this from the spec command line tool, but I can''t make it work for a story. I''ve got the three files (story.txt, steps.rb, runner.rb) from the rspec.info homepage, and I can run then by doing ruby runner.rb All splendid so far. By when I try to do spec runner.rb It doesn''t want to play. I don''t get an error message or anything, it just see...