File: result_spec.rb

package info (click to toggle)
ruby-dataobjects-mysql 0.10.8-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 320 kB
  • sloc: ansic: 1,385; ruby: 544; sh: 25; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 571 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# encoding: utf-8

require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
require 'data_objects/spec/shared/result_spec'

# splitting the descibe into two separate declaration avoids
# concurrent execution of the "it_should_behave_like ....."
# needed by some databases (sqlite3)

describe DataObjects::Mysql::Result do
  it_should_behave_like 'a Result'
end

describe DataObjects::Mysql::Result do
  it_should_behave_like 'a Result which returns inserted key with sequences'
  it_should_behave_like 'a Result which returns nil without sequences'
end