search for: example_group

Displaying 11 results from an estimated 11 matches for "example_group".

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 = Spec::Runner::OptionParser.parse(["--format", "RAutotest::Runner::Formatter"], @output, @output) example_groups.each {|example_group| options.ad...
2012 Jan 15
1
NoMethodError: undefined method `expect'
...o ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error ruby-1.9.2-p290 :006?> end NoMethodError: undefined method `expect'' for #<Class:0x007fe272270590> from (irb):5:in `block in irb_binding'' from .../.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `module_eval'' from .../.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `subclass'' from .../.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:187:in `describe'' from .../.rvm/gems/ruby-1.9.2-p290...
2012 Oct 26
8
Puppet 3.0 rspec and custom resources
...et-0.1.5/lib/rspec-puppet/support.rb:18:in `build_catalog_without_cache'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-puppet-0.1.5/lib/rspec-puppet/support.rb:24:in `build_catalog'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-puppet-0.1.5/lib/rspec-puppet/example/class_example_group.rb:55:in `catalogue'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-puppet-0.1.5/lib/rspec-puppet/example/class_example_group.rb:7:in `subject'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.1/lib/rspec/core/subject.rb:64:in `should'' /home/nrhuff/repos/...
2013 Mar 28
0
Dude, where's my full description? (bug report & suggested fix in rspec-core 2.13.1)
...red into metadata[:description] after the example is run, but metadata[:full_description] never gets updated. This results in the following metadata hash for our example: { :caller => ..., :description => "should == \"an object\"", :description_args = [], :example_group => ..., :example_group_block => #<Proc: ...>, :execution_result => ..., } No :full_description entry in sight. This means that, when someone calls `example.description` after the test is run, they get the generated matcher description, because the implementation of Example#...
2011 Jan 02
3
undefined method `run_all' for :Array
...ersion of rspec or it there a better way? ruby-1.9.3-head/gems/rspec-core-2.3.1/lib/rspec/core/hooks.rb:116:in `run_hook_filtered'': undefined method `run_all'' for []:Array (NoMethodError) from /Users/kristianconsult/.rvm/gems/ruby-1.9.3-head/gems/rspec- core-2.3.1/lib/rspec/core/example_group.rb:215:in `eval_after_alls'' from /Users/kristianconsult/.rvm/gems/ruby-1.9.3-head/gems/rspec- core-2.3.1/lib/rspec/core/example_group.rb:237:in `run'' from /Users/kristianconsult/.rvm/gems/ruby-1.9.3-head/gems/rspec- core-2.3.1/lib/rspec/core/command_line.rb:27:in `block (2 level...
2008 Jul 08
1
Strange behaviour with pending specs and implementation_backtrace
...experiencing strange behaviour with pending specs and implementation_backtrace. This is my example_pending implementation in rspactor_formatter.rb: class RSpactorFormatter def example_pending(example, message) spec = SpecObject.new( :name => example.description, :example_group_name => @example_group.description, :state => :pending, :message => message, :backtrace => example.implementation_backtrace ) @remote_service.incoming(:spec_run_example_pending, spec) end end If my code contains a pe...
2011 Jan 06
1
View specs - best practices
...9;t change for every run. I could default back down to a single it, but that would defeat the purpose of writing small tests. I''ve tried before(:all), but rspec doesn''t like it. It generates the following error: Failure/Error: render NoMethodError: undefined method `example_group'' for nil:NilClass Cheers, Jason
2007 Dec 17
14
Change in isolation behaviour 1.08 - 1.10 ?
Hi, I just moved from 1.08 to 1.10 and now have one example failing, which, under 1.08, passed. Is the due to a change in behaviour? Here''s my spec (removed some passing examples) require File.dirname(__FILE__) + ''/../spec_helper'' describe "A user" do before(:each) do @user = User.new @valid_user = User.new( :email =>
2007 Nov 26
8
Renaming RailsExample to RailsExampleGroup
Fyi, I made the following renames: * RailsExample -> RailsExampleGroup * FunctionalExample -> FunctionalExampleGroup * ControllerExample -> ControllerExampleGroup * ViewExample -> ViewExampleGroup * HelperExample -> HelperExampleGroup * ModelExample -> ModelExampleGroup This was done to keep the naming consistent with ExampleGroup.
2009 Jun 25
1
Problems resolving most users with winbind and AD/SFU
...(106) error packet at smbd/nttrans.c(2207) cmd=160 (SMBnttrans) NT_STATUS_ACCESS_DENIED This type of error also appears when I use subinacl to set group permissions on files owned by a user who does respond to id or wbinfo -i. I've added the BUILTIN groups using net sam createbuiltingroup example_group -w MYDOM: [2009/06/24 16:51:22, 3] passdb/lookup_sid.c:fetch_gid_from_cache(1107) fetch gid from cache 50000 -> S-1-5-32-544 [2009/06/24 16:51:22, 3] smbd/posix_acls.c:unpack_nt_owners(966) unpack_nt_owners: unable to validate owner sid for S-1-5-32-544 [2009/06/24 16:51:22, 3] smbd/error.c...
2009 Jul 01
0
Problems resolving most users with winbind and AD/SFU (Resolved?)
...ns) >>> NT_STATUS_ACCESS_DENIED >>> >>> This type of error also appears when I use subinacl to set group permissions >>> on files owned by a user who does respond to id or wbinfo -i. ?I've added the >>> BUILTIN groups using net sam createbuiltingroup example_group -w MYDOM: >>> >>> [2009/06/24 16:51:22, 3] passdb/lookup_sid.c:fetch_gid_from_cache(1107) >>> ?fetch gid from cache 50000 -> S-1-5-32-544 >>> [2009/06/24 16:51:22, 3] smbd/posix_acls.c:unpack_nt_owners(966) >>> ?unpack_nt_owners: unable to validate ow...