That helped a lot and I see it is a better/more polite 1-liner-way.
Do you recommend that these custom matchers probably need to go into a
spec helper for standard java classes and included since contains_key?
(key) maps to the java HashMap method containsKey(key)? Do I put
these in a ruby module
On Sep 27, 2010, at 8:05 AM, GregD wrote:
On Sep 26, 6:37 pm, David Chelimsky dchelim...@gmail.com wrote:
On Sep 24, 2010, at 1:29 PM, GregD wrote:
Hi all,
Newbie here and I'm using rspec with jruby to test a java class, but
this is more of a rspec question.
I have a java HashMap
David Chelimsky dchelim...@gmail.com wrote:
On Sep 27, 2010, at 8:12 AM, David Chelimsky wrote:
re: how to include them: yes, in a module:
# in spec/support/custom_matchers.rb
module CustomMatchers
...
end
# in spec/spec_helper.rb
RSpec.configure do |c|
c.include
On Sep 27, 9:14 am, David Chelimsky dchelim...@gmail.com wrote:
On Sep 27, 2010, at 8:12 AM, David Chelimsky wrote:
re: how to include them: yes, in a module:
# in spec/support/custom_matchers.rb
module CustomMatchers
...
end
# in spec/spec_helper.rb
RSpec.configure do |c|
On 9/27/10 8:23 AM, GregD wrote:
On Sep 27, 9:14 am, David Chelimskydchelim...@gmail.com wrote:
On Sep 27, 2010, at 8:12 AM, David Chelimsky wrote:
re: how to include them: yes, in a module:
# in spec/support/custom_matchers.rb
module CustomMatchers
...
end
# in
On Sep 27, 12:38 pm, Ben Mabey b...@benmabey.com wrote:
For rails and non-rails apps/libs the convention is to have each
*_spec.rb file require the 'spec_helper' at the top of the spec like so:
http://github.com/rspec/rspec-core/blob/master/spec/rspec/core_spec.r...
By following this
On Sep 24, 2010, at 1:29 PM, GregD wrote:
Hi all,
Newbie here and I'm using rspec with jruby to test a java class, but
this is more of a rspec question.
I have a java HashMap object and want to make sure a key exists. I
have this as my test:
context :toHashMap do
subject {
Hi all,
Newbie here and I'm using rspec with jruby to test a java class, but
this is
more of a rspec question.
I have a java HashMap object and want to make sure a key exists. I
have this as
my test:
context :toHashMap do
subject { @var_list.toHashMap }
it { should