mgivney / easyb

Automatically exported from code.google.com/p/easyb
0 stars 0 forks source link

Grails mockDomain() breaks before #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce in Grails:

1. grails create-app easybtest
2. grails create-domain-class book
3. grails install-plugin easyb
4. create test/unit/easybtest/BookStory.story:

package easybtest

before 'before', {
    given 'A book', {
        mockDomain(Book)
    }
}

scenario 'A scenario', {
    then 'it should not be null', {
        book = new Book()
        book.shouldNotBe null
    }
}

Output:
1 scenario executed successfully.

  Story: book story

      given A book [FAILURE: Cannot invoke method containsKey() on null object]

    scenario A scenario
      then it should not be null

Expected output:
1 scenario executed successfully.

  Story: book story

    scenario A scenario
      given A book
      then it should not be null

What version of the product are you using? On what operating system?
Versions
-Grails 1.3.4
-easyb-plugin 2.0.3 (includes easyb 0.7)
-Windows Vista

Original issue reported on code.google.com by GrailsC...@gmail.com on 22 Sep 2010 at 12:42

GoogleCodeExporter commented 9 years ago
The Grails plugin is currenctly at 2.0.4 (not 2.0.3) - have you tried the later 
version?

Original comment by richard....@gmail.com on 22 Sep 2010 at 6:56

GoogleCodeExporter commented 9 years ago
No, since I had no clue, that a new version has been released. Neither the 
Grails news nor the plugin page refer to it (the plugin page says 
'2.0.3-SNAPSHOT' is the current release)

Original comment by GrailsC...@gmail.com on 23 Sep 2010 at 11:16

GoogleCodeExporter commented 9 years ago
How can I get it? grails list-plugins says:
easyb               <2.0.3-SNAPSHOT> --  Allows Grails applications to write 
unit, ...

Original comment by GrailsC...@gmail.com on 23 Sep 2010 at 11:21

GoogleCodeExporter commented 9 years ago
still fails with easyb plugin 2.0.5

Original comment by GrailsC...@gmail.com on 12 Oct 2010 at 2:27

GoogleCodeExporter commented 9 years ago

Original comment by richard....@gmail.com on 19 Dec 2010 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by richard....@gmail.com on 19 Dec 2010 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by richard....@gmail.com on 19 Dec 2010 at 6:46