Displaying 20 results from an estimated 29 matches for "songkick".
Did you mean:
sangick
2008 Aug 15
7
Autotest and subclasses / namespaces
...d to just hitting CTRL-C to get autotest to re-load all
the files, or flicking to the spec file, and saving it to get a
similar effect.
But it is fairly irritating.
Any suggestions for how to hack autotest to get this to flow more
nicely?
cheers,
Matt
----
http://blog.mattwynne.net
http://songkick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080815/5f348bd8/attachment.html>
2008 Sep 26
6
BDD / cucumber thought - chaining ''Then'' steps with Which
...ween steps, I found
myself with the mild urge to be able to write this today:
Given there is a user
And the user has 20 friends
Then I should see a thumbnail of each of the users''s friends
Which should be a link to the user profile page for that friend
NB: An idiom in this which may be songkick-only but was inspired by
what we''ve read on this list, and worth explaining: "the user" as in
"the user has 20 friends", means User.first in rails. If there''s more
than one user when this step runs, it will flunk, because the English
no longer works.
S...
2008 Aug 27
3
array_including()
...e
@array_to_match.each do |item|
ok = ok and other.include?(item)
end
ok
end
end
def array_including(array_to_match)
ArrayMatcher.new(array_to_match)
end
Is there already something in the framework that does this?
cheers,
Matt
----
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-use...
2008 Sep 09
12
cucumber - mark a step as pending
I love the way I can throw a call to pending() in the top of an
unfinished RSpec example and stop it from failing the build.
Is there a similar way to do such a thing with good ole'' cucumber?
cheers,
Matt
----
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-use...
2012 Nov 07
1
select(): Interrupted system call from curb when stopping unicorn
...quot;:"select():
Interrupted system
call","backtrace":["/path/bundle/ruby/1.9.1/gems/curb-0.7.18/lib/curl/easy.rb:39:in
`perform''","/path/bundle/ruby/1.9.1/gems/curb-0.7.18/lib/curl/easy.rb:39:in
`perform''","/path/bundle/ruby/1.9.1/gems/songkick-transport-0.1.4/lib/songkick/transport/curb.rb:50:in
...
If we''re reading this correctly, curb is inside a select() call, gets
interrupted by the QUIT signal and doesn''t retry the select() and the
process terminates, causing an error for the unfortunate end user.
Our options for...
2009 Feb 05
2
[Cucumber] Progress Bar
...github.com/mattwynne/cucumber/tree/master
It will dump failing feature, scenario, step and the exception as the
features run.
No specs for it, it''s just a spike.
[1]http://ekenosen.net/nick/devblog/2008/12/better-progress-bar-for-rspec/
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
2008 Sep 13
3
RCov / RSpec segfaults on Ubuntu
...ently
segfaulted on this line:
/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb:41:
[BUG] Segmentation fault
Any pointers greatly appreciated.
cheers,
Matt
[1]http://eigenclass.org/hiki/rcov+FAQ#l11
[2]http://eigenclass.org/hiki/rcov-0.8.1
----
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-use...
2009 Feb 05
3
[Cucumber, Webrat] Error backtraces shown as HTML in console
...it when save_and_open_page
does its thing, but I''m pretty used to reading plain old stacktraces
in the console - the HTML output is very hard to read.
Is this a known issue, or a feature, or have I just got something
configured wrong?
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
2008 Sep 24
19
How to define request.domain in when testing
Hi,
My application relies on request.domain for doing its job. The problem I
am encountering, is that when running tests, request.domain returns
"test.host", how can I change that so that it returns "mysite.com"?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2009 Apr 27
2
[cucumber] Setting a constant in step definition
On Mon, Apr 27, 2009 at 7:00 AM, Andrew Premdas <apremdas at gmail.com> wrote:
> Currently I have a very simple constants implementation being loaded as a
> Rails initialiser
>
> module MVOR
> ? module Postage
> ??? THRESHOLD = BigDecimal.new(''6.99'')
> ??? RATE = BigDecimal.new(''30.00'')
> ? end
> end
>
>
> My scenarios
2009 Apr 16
6
Cucumber - step negating another expecting step
...has_matching_tags = current_dom.css(''form#frmSearch'').length > 0
assert has_matching_tags == (maybe == "should")
end
I think that would work. It''s shorter, but is it much easier to
understand?
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
2009 Jan 28
2
[Cucumber, TextMate Bundle] Call for help
Hey all,
As some of you may know I created the Cucumber TextMate bundle:
http://github.com/bmabey/cucumber-tmbundle/tree/master
What most of you probably don''t know is that I stopped using TextMate
(in favor of Vim) several months ago. Since then the Cucumber bundle
has been somewhat neglected by me and I''ve mostly pulled in patches and
regenerated the syntax for new
2009 Mar 05
8
Can I construct the controller myself in a controller spec?
Hi
I am experimenting with Constructor based dependency injection for
rails controllers.
So I have something like this
class LoginSessionsController < ApplicationController
def initialize(authenticator = TheRealAuthenticator)
@authenticator = authenticator
end
....
end
The plan was to override the authenticator used when testing with something like
describe
2008 Sep 13
4
rake does recognize "rake examples_with_rcov"
Hi,
Q1 - Know why rake doesn''t recognize "rake examples_with_rcov" per
http://rspec.info/documentation/tools/rcov.html ?
Q2 - Also when I run "rake spec:rcov" it seems to give me the same as
if I just run "autotest" or "rake spec". I was expecting a heap of
pointers to code I haven''t tested?
2008 Dec 13
4
Reuse of Cucumber Features
What''s the best way to handle a requirement that shows up as a
sub-requirement requirement in other features? For example let''s say users
can enter dates in various forms throughout my application. There is one
set of global rules specifying the formats in which dates may be entered,
and how they are interpreted. I put that in one feature. In various other
features, like
2008 Sep 16
10
autospec is not picking latest changes
Hey Guys.
I just updated a project form 1.1.4 that was working with autotest
3.10 without issues:
1) Updated spec/model/project_spec.rb and it fired only that spec.
2) Updated app/model/project.rb and it fired only the matching spec file.
After the update of rspec and rspec-rails as plugins a few minutes
ago, it only run the controller specs and no other. Also, it doesn''t
matter which
2008 Aug 20
9
I want RSpec for CSS layout.
I don''t even know how it''d be possible (through Selenium?), but I want it.
I want to see if my stupid CSS hacks break. I want to say:
describe "#nav-column" do
body = something("#body-column")
it "should line up at the top" do
dom[:top].should_be == body.dom[:top]
end
it "should always be to the right" do
2008 Sep 09
8
Cucumber and fixtures/FixtureReplacement
Hey guys,
I''d never used RSpec Stories before, so I decided to follow the
apparent direction of the wind and just jump right into cucumber. I''m
dabbling with/using Cucumber and really like it. Good job, aslak!
Where i''m struggling right now is using either fixtures or a model
factory methodology like the FixtureReplacement. In both cases, I''m
not
2012 Nov 16
0
With streaming on, closed client connections cause Fatal Broken Pipe errors
Once we turned streaming on on www.songkick.com, we started getting these
errors on production quite a bit. (See below)
It appears that if the client closes the connection during the rendering of
the template, the next attempt to write a portion of the page to the
connection will fail with a Broken Pipe error, understandably. Rails
catc...
2009 Apr 02
8
Problem with Custom matcher and Blocks
Hi,
I''m trying to write my first custom matcher.
Here''s a bit of my example group.
describe "/contact/index" do
include FormMatchers
before(:each) do
render ''contact/index''
end
it "should show the contact form" do
response.should have_a_contact_form
end
describe "the contact form" do
context