similar to: Announce: puppetlabs_spec_helper 0.4.0 available

Displaying 20 results from an estimated 10000 matches similar to: "Announce: puppetlabs_spec_helper 0.4.0 available"

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
2012 Jun 03
3
rspec spec_helper
Hi, I was playing with rspec and every time I find a possible improvement that could be made in spec_helper or rakefile I have to change it in every module that is using rspec tests. So maybe these things could be centralized, I thought to myself. I found the following module, actually. https://github.com/puppetlabs/puppetlabs-module_spec_helper But I am at a lost how to use it. Is it supposed
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 │   │   └──
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
2011 Aug 10
1
How to stop Rspec loading my Cucumber fixtures
I have a bunch of fixtures designed to populate the database for my Cucumber integration tests. But at this stage I want my database to be empty when using Rspec. So, I moved the fixtures from `/spec/fixtures` to `features/support/fixtures`, and updated `features/support/env.rb` to read: Fixtures.reset_cache fixtures_folder = File.join(RAILS_ROOT, ''features'',
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
2007 Mar 24
0
Testing Single Table Inheritance
Hi all, I have just started using Rspec in rails and trying to test the following models: >>node.rb class Node < ActiveRecord::Base acts_as_tree end >>project.rb class Project < Node end >>task.rb class Task < Project end >>milestone.rb class Milestone < Node end Fixtures for table nodes is set global in spec_helper.rb, with the types set manually in the
2012 Mar 22
1
Rspec not loading fixtures
I am taking over a code base and am trying to run the tests. I am somewhat new to RSpec so this might be a trivial problem. Basically I can tell that the fixtures are not getting loaded. All 100 tests fail with a similar error. But I don''t know why. Below is the code, with my narrative with *** before it... Can you see anything or give me a clue where to look. So far I am coming up
2007 Mar 02
2
database modifications not rolling back
Hi, Since moving this morning from 0.7.5.1 to 0.8.2 I''ve hit some problems and I''m not sure if it''s something I''m doing wrong or a change in 0.8.2 Basically I dislike fixtures so I have been using a helper method to create an object I need frequently and setting it up in the setup method, in 0.7.5.1 this all worked fine - but since moving to 0.8.2
2008 Feb 18
5
uh... fixtures?
RSpec-ers: I''m aware this is quite the FAQ. I have probably asked it myself, but I just can''t Google up anything but others asking it. I grabbed the source to Beast, to use as a Rails project uninfluenced by me, or RSpec. Then I installed the CURRENT version of RSpec and rspec_on_rails, and set up a model spec on Post. Here''s the spec_helper.rb lines:
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 =
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3. My spec_helper.rb ENV["RAILS_ENV"] ||= ''test'' require File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment'')) require ''spec/autorun'' require ''spec/rails'' require
2008 May 21
2
running rspec on 1.2.3 ??
Hi, Anyone know how to run rspec on 1.2.3? It fails out of the box.... I newly downloaded rspec, rspec_on_rails and ran the command ruby script/generate rspec ==>>> Does this script work right? from the instructions http://rspec.info/documentation/rails/install.html I then created the directories in spec: controllers, fixtures, helpers, models, views I then created the
2008 Oct 20
5
RSpec-Rails bug with to_xml?
Hello, everyone. I''ve been lurking here for a while, but this is my first post. I think I''ve run into a RSpec bug in a Rails project I''m working on. I was working on a few REST controllers, and started getting failures on a specific spec that verified whether a certain action returned XML output. I spent quite a lot of time checking my code to see if it was something I
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.
2007 Nov 29
4
Rollbacks, Sqlite3 bug. Has this been reintroduced ?
Hey, I just updated from the edge and it looks like this _issue_ has resurfaced. Yesterday things were working (stories and specs). No code base changes, only rspec and rspec_on_rails After updating today I now need to set <config.txn...fixtures> to false in the spec_helper.rb to get the specs running, the stories are fine. Looks like the fixture loading is trying to start a txn. I
2008 Dec 17
1
My first rspec reports "undefined method `key?' for #<String:0x46b1df0>"
this my first rspec test, it is very simple ----------------------------------------------------------------------------------------------------------------------------------------- > require File.expand_path(File.dirname(__FILE__) + ''/../spec_helper'') describe Doc do fixtures :docs before(:each) do @doc=docs(:yjn_bjy) end it "should create a new instance
2008 May 20
2
rspec fails at first run -- no such file to load -- spec/rails
Hi, I newly downloaded rspec, rspec_on_rails and ran the command ruby script/generate rspec from the instructions http://rspec.info/documentation/rails/install.html I then created the directories in spec: controllers, fixtures, helpers, models, views I then created the file spec/models/user_spec.rb as a spec for my model User. (Is the convention to name the model''s spec
2007 Aug 31
3
Setting use_transactional_fixtures=false for a single spec - a bad idea?
Hi! I would really like to find a way to allow me to write RSpec specifications for code that use database transactions. I know I can set config.use_transactional_fixtures = false in my spec_helper.rb. That works, and that''s great, but it will (I think) slow down my specs quite a bit. I would like to turn off transactional fixtures for just a single spec (describe), or even
2007 Nov 10
2
Problem with view spec - works inside the browser but spec fails with nil object
Hi, I''ve been trying to find an answer for this problem in the last couple hours, but I think no discussion was about this exact same thing. So here it goes, hope someone can help. I''m trying to spec a view which works correctly on the browser, but that generates the following error when I run "rake spec:views". ActionView::TemplateError in ''/survey/show