Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. package groovy
  2.  
  3. def sayHi = "hi"
  4.  
  5. import spock.lang.Specification
  6. import spock.lang.Unroll
  7. import groovy.TheScript // what to do instead?
  8.  
  9. class TheScriptTest extends Specification {
  10. def "Test One"() {
  11. expect:
  12. sayHi() == "hi" // sayHi() does not exist - how to call the field?
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement