Sha256: a839fd91dbbd36114c00e09b3e289c3ad9535d75be822d29a7eb60d65a54bd86
Contents?: true
Size: 857 Bytes
Versions: 31
Compression:
Stored size: 857 Bytes
Contents
#!/usr/bin/env ruby require 'rspec' require 'treequel' require 'treequel/control' # This is a shared behavior for specs which different Treequel::Controls share in # common. If you're creating a Treequel::Control implementation, you can test # its conformity to the expectations placed on them by adding this to your spec: # # require 'treequel/behavior/control' # # describe YourControl do # # it_should_behave_like "A Treequel::Control" # # end shared_examples_for "A Treequel::Control" do let( :control ) do described_class end it "implements one of either #get_client_controls or #get_server_controls" do methods = [ 'get_client_controls', # 1.8.x 'get_server_controls', :get_client_controls, # 1.9.x :get_server_controls ] (control.instance_methods( false ) | methods).should_not be_empty() end end
Version data entries
31 entries across 31 versions & 1 rubygems