Checking object equality in Jasmine
I was looking for the same thing and found an existing way to do so without any custom code or matchers. Use toEqual().
I was looking for the same thing and found an existing way to do so without any custom code or matchers. Use toEqual().
I really found jamuraa’s answer helpful, but going for full xpath gave me a nightmare of a string in my case, so I happily made use of the ability to concatenate find’s in Capybara, allowing me to mix css and xpath selection. Your example would then look like this: find(‘#some_button’).find(:xpath,”.//..”).fill_in “Name:”, :with => name Capybara … Read more
I guess there are two types of tests you can do: Unit tests that fake the AJAX request (using Jasmine’s spies), enabling you to test all of your code that runs just before the AJAX request, and just afterwards. You can even use Jasmine to fake a response from the server. These tests would be … Read more
I’ve just finished comparing three BDD frameworks for Java. Obviously my findings have a fairly short use-by date. Concordion Very flexible Very pretty report output Nice plugin framework Poorly documented. I had to read the source to figure it out (luckily its extremely good quality). Fixtures seemed likely to end up tightly coupled to the … Read more
Brett Schuchert from Object Mentor just posted a series of videos on TDD The videos are meant to be watched in order. GettingStarted Adding Basic Operators Removing Duplication Extracting to Strategy Removing Duplication via Refactoring or Removing Duplication via Tdd using Mockito Introducing an Abstract Factory Adding a Sum operator Adding Prime Factors Operator Composing … Read more
Lettuce means to be a cucumber-like tool for python: http://lettuce.it/ You can grab the source at github.com/gabrielfalcao/lettuce
I understand BDD to be more about specification than testing. It is linked to Domain Driven Design (don’t you love these *DD acronyms?). It is linked with a certain way to write user stories, including high-level tests. An example by Tom ten Thij: Story: User logging in As a user I want to login with … Read more