Displaying 20 results from an estimated 300 matches similar to: "Rspec beta8: helper methods issues"
2010 Sep 01
2
Undefined methods: has_selector? and flunk
I''m in the process of updating an app for Rails 3.0 and rspec-rails
2.0.0.beta20. When I''m running my specs (rake spec) I get a large number
of errors caused by two undefined methods
undefined method `has_selector?'' for #<String:0x7fdbd0b5b270>
undefined method `flunk'' for
2008 Jan 24
3
Help to spec a rails helper method that uses content_for
Hi guys,
I am a Rspec newbie and am having problems creating a spec for a RoR helper
method.
I have in fact already implemented the helper method and am trying to create
retrospective specs. I know its the wrong way to do it but I am still
learning Rspec.
In my view I have a call to a helper method.
<% body_class "users" %>
which sets a CSS class declaration in the content_for
2010 Aug 11
6
rspec2 not working with shoulda
I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta.
19" .
I have following code at spec/models/user_spec.rb
require ''spec_helper''
describe User do
it { should validate_presence_of(:email) }
it { should validate_presence_of(:name) }
end
Here is my gemfile
group :development, :test do
gem ''factory_girl_rails'',
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
Hello,
Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to test,
if self.create method can take more than two arguments. But, when I try to
run my test. It showed
*PdfHelper Should have two arguments
Failure/Error:
create_pdf.should_receive(object,template).with(user,file)
NameError:
undefined local variable or method `create_pdf'' for
2010 Jun 20
10
RSpec 2 view example: render_template
On http://github.com/rspec/rspec-rails under "View specs" there''s an
example
describe "events/index.html.erb" do
it "renders _event partial for each event" do
assign(:events, [stub_model(Event), stub_model(Event)])
render
view.should render_template(:partial => "_event", :count => 2)
end
end
Is this indeed correct? From the
2013 Mar 02
0
Problems getting rspec testing working in OSX?
Hey Gang,
Running into a weird error when trying to follow puppetlabs'' blog:
https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/
I''m running 10.8.2, using default ruby, in an attempt to make my home env a little more sane, (ran into weird rbenv issues at work, which I won''t go into here)
The google tells me not a whole lot. Appreciate any help
2012 Jul 17
24
Static Pages from Railcast
Hi everyone,
I need several pages to be static but also modify when requested. I try
following the railcast from Ryan at
http://railscasts.com/episodes/117-semi-static-pages?view=comments
Here what I have done!!
rails g scaffold Pages name:string permanentlink:string title:string
author:string access_level:string is_published:boolean
meta_description:string meta_keyword:string
2010 Jun 20
7
rspec-rails 2.0.0.beta.12 showing undefined method error for route_to
First of all, I''ve been trying to find an answer for this problem all
over the internet without luck.
The thing is that I am using RVM with ruby 1.9.2-head and I created a
new empty gemset. Then I installed bundler gem with:
gem bundler install
That installed the library into the /Users/damselem/.rvm/gems/
ruby-1.9.2-head at rails3/gems directory. Then I went to my rails 3 app
2010 Aug 30
1
undefined method `route_for' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:
Hello, all, I have this error with my rspec - controller - test, and
yes, I do found the thread with the same error here, but it isn''t
helped me, think it''s not my case.
i have rails -v = Rails 3.0.0.rc, rspec -v = 2.0.0.beta.18 (hope they
should match each other).
my test is here: spec/controllers/posts_controller_spec.rb and i ran
it with command: rspec
2012 Sep 16
0
tutorail test writing problem
Hello,
I try to follow this tutorial :
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
Im now at chapter 3.2.1.
But the test is still failing even if I do everything according to the
chapter.
My code can be found here : https://github.com/roelof1967/demo_app
And the faiing message is :
Failures:
1) Static pages Home page should have the content ''Sample App''
2007 Dec 27
5
ExampleGroup and SharedExampleGroup relationship(?)
I''m working on a series going over the source code for rspec, and I ran into
something interesting with ExampleGroup and SharedExampleGroup. I was
wondering if anyone could shed light on it.
[NOTE: I''m working through the code for my own edification in learning Ruby.
Ruby has some features that I think are incredibly cool, so I''m using a
concrete implementation (RSpec)
2007 Dec 14
13
RSpec-1.1.0 is released
The RSpec Development Team is pleased as glug (that''s kind of like
punch, but more festive) to announce RSpec-1.1.0.
Thanks to all who have contributed patches over the last few months.
Big thanks to Dan North and Brian Takita for their important work on
this release. Dan contributed his rbehave framework which is now the
Story Runner. Brian patiently did a TON of refactoring around
2007 Nov 11
3
v1.1.beta8 released
http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta8.tar.gz
http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta8.tar.gz.sig
Changes since beta7:
- Added a new "raw" mail storage backend which allows opening
files/streams as single mail mailboxes. deliver uses this now instead of
opening the incoming mail as a mbox. So deliver should be now faster and
it doesn't anymore remove
2008 Apr 22
1
Asterisk 1.2.28, 1.4.19.1, and 1.6.0-beta8 Released
The Asterisk development team has released versions 1.2.28, 1.4.19.1, and
1.6.0-beta8.
All of these releases contain a security patch for the vulnerability described
in the AST-2008-006 security advisory. 1.6.0-beta8 is also a regular update to
the 1.6.0 series with a number of bug fixes over the previous beta release.
Early last year, we made some modifications to the IAX2 channel driver to
2008 Apr 22
1
Asterisk 1.2.28, 1.4.19.1, and 1.6.0-beta8 Released
The Asterisk development team has released versions 1.2.28, 1.4.19.1, and
1.6.0-beta8.
All of these releases contain a security patch for the vulnerability described
in the AST-2008-006 security advisory. 1.6.0-beta8 is also a regular update to
the 1.6.0 series with a number of bug fixes over the previous beta release.
Early last year, we made some modifications to the IAX2 channel driver to
2006 May 14
2
beta8: complaint about tilde at startup
Timo,
After installing beta8 on Solaris 10 sparc and starting it for the
first time, I noticed this in my syslog:
May 14 19:35:45 emerald dovecot: [ID 475045 mail.info] Dovecot v1.0.beta8 starting up
May 14 19:35:47 emerald dovecot: [ID 536776 mail.error] stat(~) failed: No such file or directory
The only appearance of the tilde (~) in my dovecot.conf is here:
default_mail_env =
2008 Oct 18
4
Problems when programmatically defining examples
Hi,
I am trying to code an application that is based on Rspec; I am
programmatically building examples, and launching the runner with a custom
formatter. Here are the code snippets from my app:
Launching the runner:
example_groups =
test_expectation.example_groups_for(system_state)
@output = StringIO.new
options =
2006 Nov 20
1
cache_key assertion error 1.0.beta8
I just added auth caching with pam, and I'm getting this error:
dovecot: [ID 107833 mail.error] auth(default): file passdb.c: line 178
(passdb_init): assertion failed: (passdb->passdb->default_pass_scheme !=
NULL || passdb->passdb->cache_key == NULL)
A google search turns up
<http://www.dovecot.org/list/dovecot-cvs/2005-March/004117.html>
which looks approx like this
2012 Sep 07
0
Samba4 beta8: samba daemon doesn' t start nmbd daemon !
Hi anybody.
I use Samba4 beta8 as AD DC. But also I need fully working file server with
showing it at neighborhood.
In Samba4 beta6 I run samba as main daemon, then nmbd that server could be
showed at neighborhood.
But in beta8 doc is written: "When running an AD DC, you only need to run
'samba' (not nmbd/smbd/winbind), as the required services are co-coordinated
by this master
2006 Jun 19
2
beta8 + mbox + Thunderbird
Hi all,
I'm still using beta8 (on FreeBSD 5.4-RELEASE).
Recently I put a co-worker who's using Thunderbird (1.5.0.4) on it and
he seemed to have lost some messages (which were delivered on the
spool since seen on procmail logfile).
I switched him on another server to play safe and tried to test it
myself but failed to reproduce the issue. I myself use mutt on a daily
basis with no