Sha256: a4de27c8036939d4d5948e91814e1c767fb8c165f93016bc1a3bb6f6576cde7e
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' describe Cistern do class SampleService < Cistern::Service class Real end end class SampleService::GetSample < Cistern::Request service SampleService def real(*args) args end end class ShowSamples < Cistern::Request service SampleService, method: :list_samples def real(*args) {"samples" => args} end end it "allows requests to be created in a forward compatible structure" do expect(SampleService.new.get_sample("likewhoa")).to contain_exactly("likewhoa") expect(SampleService.new.list_samples("likewhoa")).to eq("samples" => ["likewhoa"]) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cistern-0.12.3 | spec/request_spec.rb |
cistern-0.12.2 | spec/request_spec.rb |
cistern-0.12.1 | spec/request_spec.rb |