Thank you Shalon!
To clarify to everyone, you, of course, need to use
example.org
instead though as your test domain. So you could do:
def valid_site_attributes(options = {})
{
:domain => '
http://www.example.org',
:folder => 'exampleorg',
:subdomain => 'example',
:active => true,
:id => 1
}.merge(options)
end
given "current_site" do
Site.all.destroy!
@current_site = Site.create(valid_site_attributes)
end
describe "/payment", :given => 'current_site' do
before(:each) do
@response = request("
http://example.example.org/payment")
end
it "should respond successfully" do
@response.should be_successful
end
end
And that will be green :)
> > combinations a month ago but with no success.Atmosmentions it is