01:04
aslakhellesoy joined
01:15
ashley_moran joined
02:24
Flydoire|Taktik joined
03:01
Flydoire|Taktik_ joined
04:40
jschoolcraft joined
04:45
aslakhellesoy joined
04:50
joshkalderimis joined
08:43
Flydoire|Taktik left
09:12
<ekidd>
Good morning! I'm trying to test a very complicated client-side GUI in an idiomatic Cucumber fashion.
09:12
<ekidd>
I want to write things like "When I press tab"
09:13
<ekidd>
But I don't want to keep specifying really arcane Selenium locators.
09:58
aslakhellesoy joined
11:15
irclogger_com joined
13:30
<pojo>
hey. how can I set the http_referrer header in cucumber?
13:31
<pojo>
it suggests request.env["HTTP_REFERRER"] but I'm not entirely sure where to put that.
13:31
<pojo>
request is nil in a step definition
13:52
<pojo>
apparently I just needed up update capybara to pass http_referrer. it's all good. :)
20:14
<pojo>
So apparently each scenario deletes the records from the database, but does not reset the id counter for tables. Is there a way to make it reset the db entirely?
20:15
<pojo>
when I create objects that depend on eachother, like a photo having a reviewflag object (for flagging objectionable content), I need to know what the id for that photo is to create the flag in the next step.
20:16
<pojo>
or is there a better way to approach this?
20:16
<pojo>
when I was writing the steps individually, they worked as the ids would always be set at 1.. when I run a bunch of scenarios at once, the id counter increments from one scenario to the next
20:16
<pojo>
this breaks my scenarios
22:41
<Tenpaiyomi>
Quick question, I have a line "I should have ([0-9]+) projects" and then Project.count.should == count.to_i, but get an error "undefined method `should' for 1:Fixnum (NoMethodError)"
22:44
<Tenpaiyomi>
Nevermind, turns out rspec was not setup properly