similar to: Story HTML Formatter

Displaying 20 results from an estimated 10000 matches similar to: "Story HTML Formatter"

2008 Mar 17
8
should have_tag outside Rails
Hi Google has not helped me here. I''m looking for a way to use the have_tag assert_select wrapper outside RSpec on Rails (but in a Rails project) so I can use it to check text strings. Has anyone managed this? Thanks Ashley -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 May 23
4
content_for
Any ideas how I would go about writing specs for views which make use of content_for? I''d like, for example, to be able to specify that ABC view places XYZ in the sidebar, which I do using content_for(:sidebar). Am I missing something obvious? Kyle
2007 May 24
2
mocking out helper method in a view spec
Hi, How can I mock or stub out a helper method that''s being called in a view that''s described by a view spec? Joe
2007 Jul 24
11
Mock or Stub strategy for validates_uniqueness_of
Hi, I''m a bit stuck with mocking a unit test of a join model with regards to a validates_uniqueness_of clause. I have class Book < AR:B has_many :clippings various validates_presence_of etc end class Clip < AR:B has_many :clippings various validates_presence_of etc end class Clipping < AR:B belongs_to :book belongs_to :clip validates_uniqueness_of :clip_id,
2008 Jan 04
1
patch for html display
All, I''ve found that the html view for the rspec formatter falls to pieces with Rails 2.02 and rspec 1.10. Has anyone else run into this trouble? Here''s a monkey patch that fixes the problem. A more elegant fix would be in order, but this gets the job done: Index: /Users/timcharper/www/exchange/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
2007 Nov 23
12
namespaced controllers
Out of curiosity, I''ve seen the following fail: module Admin describe MyController ... end end But this works fine: describe Admin::MyController .. end Why? Scott
2011 Oct 18
3
Database custom formatter
I am trying to write a custom formatter to update a database record based on example results. Having a lot of trouble, so I thought to ask if anyone has a custom formatter that writes results to a database or outputs results in JSON or some other programmatic format. A working example will go a long way in helping me work thru my own use case. Thanks -------------- next part -------------- An
2008 Jun 12
4
after :each invoked before formatter?
Hello. I''m using RSpec with Watir to do some automated tests on IE. I''ve ran into problem, where I want to make a screenshot of a browser window when example fails. For that I made custom formatter where in extra_failure_content i''m invoking screenshot taking methods. Now, everything works like a charm, as long as I''m not using after :each. I remember that I
2007 Sep 09
11
Going beyond the default html formatter/report?
Hi! I wonder does anybody planning to go beyond the default html formatter/report? The current html report is nice and green but what about to go a little silly and enable also user input. For example to let customer to add a new pending spec, comments etc. I feel it might be mentally easier for some customers to jump into spec world when it is possible to give input at "the same
2006 Feb 15
1
need a R-code formatter?
Hi all, I am using Tin-R as my editor; I use it because it allows me to send several selected lines to R-console and execute them... In some sense, this is my line-by-line debugger. But it doesn't have a code formatter, I have to layout the indention myself -- when there are many { } blocks with different layers, this editor does not help me beautify the code... I am looking for some
2007 May 22
3
rspec_on_rails'' spec:doc and dry runs
In rspec_on_rails, the spec:doc task uses --dry-run, which doesn''t jive well with rspec''s ability to write docs for you. For example, I use the rspec_expectation_matchers plugin from spicycode.com (scanned for a name, didn''t find one =), and end up writing specs like: it { @ticket.should validate_presence_of(:name) } Which results in specdocs such as: Ticket
2007 Sep 03
6
blog post on story runner
Here''s an excellent blog post on Story Runner, which will be part of the next release and is undergoing active development in trunk: http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story-runner
2008 May 02
2
Return code for running stories
Hi all! Just wrote a few stories and committed code to a project of mine, then realized I made a mistake (with the commit, not the code or tests). It would be nice to put the script that runs the stories as a pre-commit hook, preventing the commit from succeeding if the stories fail. For that, I need to set the right exit code. In turn, I need to know he result of the tests. Given the
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
In case anyone else is trying to make this work, here is what I did (Before 0.7.4 I had patched the regex in zentest redgreen, but that is not used any more) To use directly, it is very simple. In rspec_autotest/lib/ rspec_autotest.rb, add a -c to the spec_command in the initializer function: @spec_command = "spec -c --diff unified" This won''t help however if you want
2007 Nov 09
26
RSpec on Rails 2.0
I have a project on edge rails that I''m trying to convert from Test:Unit to rspec. I have the rspec gem version 2338, the rspec and rsepc_on_rails version 2831 in vendor/plugins, and rails version 8117 in vendor/rails. I''ve been able to get a few specs passing, have gotten the specs running from autotest, and am able to do "rake spec:doc" and get the basic command
2010 Dec 02
1
Metadata about formatter being used accessible in spec?
Is it possible to read which formatter is being used? For instance if - f d is used to output additional information or is there a better way to do that?
2008 Jun 02
7
Pretty HTML reporting for stories
Hi all, I''m just getting to grips with rspec, and I''m trying 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
2008 Dec 09
3
a custom progress bar formatter
I''ve always been a little bit bemused by the default ruby test/unit and rspec output. Basically, what I want is a progress bar and that any errors and warnings be displayed immediately. I also want warnings to be printed for slow specs. When using color, I want the entire progress bar printed in green if everything is good, yellow if there has been a warning, and red if there has been an
2019 May 04
4
[PATCH] configure.ac: Add mandoc as valid formatter
Hi, On systems that have mandoc installed but are missing an nroff binary, the configure script will fall back to pre-formatted manual pages despite the fact that mandoc could be used. The proposed patch adds mandoc as a valid formatter to configure.ac. As mandoc supports the -mdoc flag, it can simply be added to the list of nroff-like binaries. Wolfgang -------------- next part --------------
2007 Dec 26
3
executing code after each step of a story
Hello, how can I execute some code after each step of a story. Is there some kind of listener documentated. Thank you in advance, Armin