Displaying 20 results from an estimated 3000 matches similar to: "puppet-rspec / puppetlabs_spec_helper"
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
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 04
4
Problem in migrating a database to Heroku
When trying to migrate a database to `Heroku`, I get the following
(Provided that I''m using `gem ''sqlite3'', ''1.3.3''`:
$ heroku rake db:migrate
(in /app)
rake aborted!
uninitialized constant Rake::DSL
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing''
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
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.
2011 Nov 28
1
Queue-Tip/Adhearsion installation tip
Hi,
I'm giving Queue-Tip a try, following installation instructions in
http://queue-tip.rubyforge.org/install.html.
My setup is :
ruby 1.8.7
rubygems 1.3.7
rails 3.1.3
Adhearsion 1.2.3
I'm struck in step 7 in the above installation procedure :
# rake --trace db:create
(in /usr/local/src/queue-tip)
rake aborted!
no such file to load -- initializer
2013 Jun 27
5
Is it possible to pass extra flags to Puppet via rspec?`
Hello,
I''m writing my first puppet function rspec test and am having a problem
which I don''t see how to solve.
The function (and the test) involve access to files through the File
Server. In order for the function (and the test) to work I need to pass
"--fileserverconf=fileserver.conf" parameter to Puppet.
So far I haven''t found a way to do that.
If I
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
2012 Feb 25
1
Seems I'm missing some kind of library?
When I run "rake db:create --trace" in my rails directory, or if I
attempt a "bundle install" I get the same error around missing
"rubygems/format". I am new, but I am really hoping there is some way
that I can discover which package this "rubygems/format" belongs in.
I did a locate on "format" | grep gem and I didn''t find any
2012 Feb 27
9
Bit of a issue with creating a new app and running it
HI all,
I have just setup the ROR environment on a vps, but once i created the
app and run rails s or db:create after modifying the database.yml it
keeps on appearing with the "Could not find gem sqlite3" etc message
which i know this as it''s not install as i am using mysql. What else
have i got to do other than modifying the database.yml as to me it''s
still looking
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
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
2010 Sep 23
0
rake aborted! undefined method `autoload!'
Hi!
I made a app in rails 3.0.0, but when i try to upload to my hosting i
take to change the version of rails to rails 3.0.0.beta4
Im make the bundle install and every step cool, but when i try to do the
rake db:migrate i have the next error...
-bash-3.2$ rake db:migrate --trace
(in /home/aerotour/public_html/aeto)
rake aborted!
undefined method `autoload!'' for
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
2011 Sep 30
5
Rails on Netbeans 6.9.1
I installed ruby 1.9.2 using RVM and then used Netbeans to install the latest
rails and gems etc.
However when I create a new rails application and click finish i get the
following error
http://old.nabble.com/file/p32569627/Screen%2BShot%2B2011-09-30%2Bat%2B16.14.01.png
Screen+Shot+2011-09-30+at+16.14.01.png
When I create a new rails project I correctly select the right version of
Ruby to use
2010 Sep 30
0
no such file to load --initializer
Hi all,
issuing the command "$rake gems" in a rails-application folder leads
to the error "no such file to load -- initializer"
I am on centos5.2, ruby 1.9.2.p0, rubygems 1.3.7, rails 3.0
irb -> require ''rubygems'' => false
echo $GEM_PATH leads to /usr/local/lib/ruby/gems/1.9.1
gem environment leads to
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7 -
2008 Jan 01
5
Compiling wxruby-1.9.2
Hi,
I''m trying to compile wxruby-1.9.2. This is my first time using rake.
All I get is the following:
(in /bld/lib/wxruby-1.9.2)
rake aborted!
can''t convert nil into String
/bld/lib/wxruby-1.9.2/rakefile:48
(See full trace by running task with --trace)
And with --trace:
(in /bld/lib/wxruby-1.9.2)
rake aborted!
can''t convert nil into
2010 Sep 08
14
A version problem
After updating, script/server fails with this stack trace:
script/server -u
/.../1.8/rubygems.rb:223:in `activate'': undefined method `map'' for
nil:NilClass (NoMethodError)
from /.../1.8/rubygems/custom_require.rb:35:in `require''
from <project>/vendor/rails/railties/lib/commands/server.rb:1
from /.../1.8/rubygems/custom_require.rb:31:in
2007 Dec 08
1
Trouble updating to Rails 2.0
I recently updated my gems and first I got an error with Rails.
Aparently, Rails 2.0 has a dependency on ActiveResource, but the gems
dont install it as a dependency. At least not when upgrading from
1.2.6 to 2.0
Then, when I try to freeze the gems to generate the new documentation,
I get the following error:
gabriel@fenix:~/dummy$ rake rails:freeze:gems --trace
(in /home/gabriel/dummy)
rake
2009 Feb 21
4
problem with running rake db:migrate on a Rails app
Hi everybody,
I am trying to get the Typo blog engine up and running in development
mode but I hit the wall as early as running rake db:migrate:
(in /home/tweisser/workspace/typo/typo)
rake aborted!
no such file to load -- spec/rake/spectask
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require''