search for: spechelp

Displaying 3 results from an estimated 3 matches for "spechelp".

Did you mean: techelp
2007 Sep 27
1
using @variables in an ''it'' block
...olks, I''m somewhat new to the current RSpec release - at work we are still using 0.8.something, with "context ''blah'' do ... specify ''should thing'' ..." We have some helper code to automatically mix-in selenium: module SeleniumHelper include SpecHelper ... def initialize(arg) @selenium = SeleniumHelper.selenium end (selenium.rb also adds some method-missing magic so we don''t need to say ''@selenium.open(foo)'' we can just say ''open(foo)'', but that''s not particularly relevant to my ques...
2007 May 28
1
Rails matcher render_template is wrong when using GetText, looking for flexible solution
...d the same extension as GetText does to the expected rendered view path: response.should render_template("index" + "_" + GetText.locale.to_general) But adding this to every check would be ugly and not very DRY. I''ve tried to override the render_template matcher in my SpecHelper with a method doing the addition before passing it on to the matcher. module Spec::Rails::Matchers alias render_template_without_gettext_fix render_template def render_template(path) path += "_" + GetText.locale.to_general render_template_without_gettext_fix(path) end end But...
2007 May 10
12
shared descriptions -- a couple of issues
Hello All, I''ve just upgraded to rspec/rspec_on_rails 0.9.3 and am very excited about shared descriptions. They couldn''t have come at a better time: I just finished refactoring some REST controllers so that the bulk of the actions are inherited from a superclass. Now I can write the specs once, too. :) I''ve hit a couple of snags, though. I thought I''d