Displaying 20 results from an estimated 200 matches similar to: "Problems getting rspec testing working in OSX?"
2013 Oct 28
1
Using puppetlabs_spec_helper on Windows 7
I''m trying to make puppetlabs_spec_helper runs on Windows 7 to test my
Puppet modules.
Is this supported ? Because I encountered some problems:
1. symlinks were not created on Windows 7 (even if the functionnality
are availabe). To manage that I added to rake_tasks.rb an ugly function:
def make_link(source,target)
ruby_platform =
2012 Aug 17
3
puppet-rspec / puppetlabs_spec_helper
I am using puppet 2.7.14 on Ubuntu 10.04 LTS. I have the following gems:
*** LOCAL GEMS ***
diff-lcs (1.1.3)
hiera (0.3.0)
hiera-puppet (0.3.0)
metaclass (0.0.1)
mocha (0.12.1)
puppet-lint (0.1.13)
puppetlabs_spec_helper (0.2.0)
rake (0.9.2.2)
rspec (2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.2)
rspec-mocks (2.11.1)
rspec-puppet (0.1.3)
When I run "rake help" I get the
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''
2012 Jun 08
1
Announce: puppetlabs_spec_helper 0.1.0 Available
puppetlabs_spec_helper is a Rubygem to make writing and running module spec
tests using rspec-puppet easier. It includes a set of common rake tasks and
a spec_helper that correctly initializes puppet and rspec-puppet for
testing.
The code is available on github at
http://github.com/puppetlabs/puppetlabs_spec_helper. Patches are welcome.
To convert a module with existing spec tests to use the
2014 Aug 12
0
How to make puppetlabs_spec_helper ignore modules inside fixtures
Hello all,
I have created this module:
https://github.com/Spantree/puppet-thrift and everything worked fine all
specs ran fine.
Now I using the puppetlabs/apt module and when I run the 'rake spec' it is
trying to run the 'apt' tests, and it is failing (I think) because I am not
providing the appropriate facts.
Is there a way to ignore the rspecs inside the
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
2010 May 07
2
Rspec beta8: helper methods issues
Hello everybody,
I am experiencing the following problems, I googled quickly but I
couldn''t find any documentation or solution to those issues:
1) the generator rails g rspec:helper does nothing;
2) there seems to be no way to test helper methods as I used to do...
for example
the following spec
it ''should set monday as first day of the week'' do
2013 Aug 30
3
rspec-puppet not working
I''m trying to get rspec-puppet working and have run into a problem. I have
a VM running ubuntu lucid, have installed rubygems 1.3.5 from the apt
package and have install rspec-puppet (and other required gems), and rake,
using gem install.
I''ve run rspec-puppet-init in the module I want to test, and have created a
very basic spec file for one of the classes in my module.
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
2012 May 25
4
rspec first steps troubles
I try do implement tests for my puppet code and was playing with
rspec-puppet but the following code gives me errors
require ''spec_helper''
describe ''irqbalance'' do
it { should include_class(''irqbalance'') }
it { should include_class(''irqbalance::data'') }
it { should
2012 Dec 17
3
Rspec with rspec-hiera-puppet
I''ve been working on getting spec tests on all of my modules and am down to ones that use hiera and don''t have any reasonable defaults. It looks like there is a project on GH (https://github.com/amfranz/rspec-hiera-puppet) that is designed to fill this need, but for the life of me I cannot make it work. FriedBob helped out on the IRC channel some with his solution of including
2012 Dec 26
0
Announce: puppetlabs_spec_helper 0.4.0 available
puppetlabs_spec_helper is a Rubygem to make writing and running module
spec tests using rspec-puppet easier. It includes a set of common rake
tasks and a spec_helper that correctly initializes puppet and
rspec-puppet for testing.
Changes:
* Rake should fail if git can''t clone repository
* add backwards-compatible support for arbitrary git refs in .fixtures.yml
* Only remove the
2009 Sep 15
3
how to run all tests AND metric_fu
i want to use cruisecontrol.rb to run ?rake test? (every time a new
revision is in the svn repo) and ?rake metrics:all? (let?s say every
24 hours). how do i have to configure cruisecontrol.rb? both rake
tasks work. however, when i configure cruisecontrol.rb as described on
the metric_fu website, i.e. add ''project.rake_task = ?metrics:all?
project.scheduler.polling_interval =
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
2012 Jul 31
1
puppet doc questions
Does puppet doc require a specific version of any gems (such as rdoc or
rake) to operate?
I''m getting some errors when I try to generate my rdoc now.
# puppet doc --output /var/www/test --modulepath
/etc/puppet/environments/test/modules -m rdoc
RDoc::RDocError is deprecated and will be removed in RDoc 4
Could not generate documentation: uninitialized constant
RDoc::RDoc::Generator
2008 Mar 31
0
[CruiseControl] mongrel-trunk-mingw32 build 997.1 failed
The build failed.
Note: if you set Configuration.dashboard_url in config/site_config.rb, you''d see a link to the build page here.
CHANGES
-------
Build was manually requested
BUILD LOG
---------
D:/Users/Luis/.cruise/projects/mongrel-trunk-mingw32/work Luis$ ruby -e "require ''rubygems'' rescue nil; require ''rake''; load
2012 Aug 16
0
Announcing stdlib 3.0.0
Hello,
We''re pleased to announce the release of the stdlib module at version 3.0.0
[1]. This major release drops compatibility with Puppet 2.6 and preserves
compatibility with Puppet 2.7. The 2.x series will persist for
compatibility and bugfix releases for Puppet 2.6. New features intended to
work with Puppet 2.6 may be included into a future stdlib 2.5 release, as
there are still
2012 Sep 21
0
rspec testing - what am I missing?
Hi all,
There is something amiss with what I am doing. I believe the following
should work.
puppetlabs_spec_helper (0.3.0)
rspec (2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.2)
rspec-mocks (2.11.1)
rspec-puppet (0.1.4)
.
├── manifests
│ └── init.pp
├── Rakefile
└── spec
├── classes
│ └── testthis_spec.rb
├── defines
├── fixtures
│ ├── manifests
│ │ └──
2010 Jun 24
1
Scheduling a nightly build - config options
Hello,
I downloaded the latest cruisecontrol.rb from github and tried configuring a schedule for building every 24 hours.
Below is my project specific cruise_config.rb. What''s happening is, cruisecontrol.rb is not honoring the polling_interval of 1.day and it keeps building continuously (true to it''s nautre of continuous buids), which I assume it''s using the default
2012 Sep 19
2
Puppet testing
I''m in the process of trying to get automated testing for my modules, using
puppet-lint, rspec-puppet, puppetlabs_spec_helper and Jenkins.
Are there any automated, or semi-automated ways to ensure coverage on my
tests? At the moment I am writing tests for existing modules, but I also
need to be able to be relatively certain that tests are updated as modules
are, and minimize reliance