Sha256: 9520a5a1c20f84f0a6610ddc86409d2617f550c30eec25645e1ef1f31ad4f2b4
Contents?: true
Size: 850 Bytes
Versions: 10
Compression:
Stored size: 850 Bytes
Contents
Feature: Inspecting Templates The client can be used to retrieve a template stored on Mirage. Background: Given the following require statements are needed: """ require 'rubygems' require 'rspec/expectations' require 'mirage/client' """ Scenario: retrieving a Template Given a template for 'greeting' has been set with a value of 'Hello' When I run """ Mirage::Client.new.templates(1).body.should == 'Hello' """ When GET is sent to '/requests/1' Then a 404 should be returned Scenario: retrieving a Template that does not exist Given I run """ begin Mirage::Client.new.templates(2).should == 'this should not have happened' fail("Error should have been thrown") rescue Exception => e e.is_a?(Mirage::TemplateNotFound).should == true end """
Version data entries
10 entries across 10 versions & 2 rubygems