On Sep 27, 12:38 pm, Ben Mabey 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 convention you w
On 9/27/10 8:23 AM, GregD wrote:
On Sep 27, 9:14 am, David Chelimsky 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
On Sep 27, 9:14 am, David Chelimsky 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.i
David Chelimsky 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 CustomMatchers
On Sep 27, 2010, at 8:12 AM, David Chelimsky wrote:
>
> On Sep 27, 2010, at 8:05 AM, GregD wrote:
>
>> On Sep 26, 6:37 pm, David Chelimsky 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
On Sep 27, 2010, at 8:05 AM, GregD wrote:
> On Sep 26, 6:37 pm, David Chelimsky 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 object
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 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
> su