lucid_works 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ module LucidWorks
9
9
  schema do
10
10
  attribute :name, :string, :primary_key => true
11
11
  attribute :instance_dir
12
+ attribute :template
12
13
  end
13
14
 
14
15
  validates_presence_of :name
@@ -1,3 +1,3 @@
1
1
  module LucidWorks
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -10,6 +10,7 @@ describe LucidWorks::Collection do
10
10
  before do
11
11
  @collection_name = "a_new_collection"
12
12
  @instance_dir = "my_instance_dir"
13
+ @template = "default.zip"
13
14
  end
14
15
 
15
16
  def collection_count
@@ -18,14 +19,16 @@ describe LucidWorks::Collection do
18
19
 
19
20
  describe ".create" do
20
21
  context "with ideal circumstances" do
21
- it "should create a new collection with the appropriate name" do
22
+ it "should create a new collection with the appropriate parameters" do
22
23
  lambda {
23
24
  c = LucidWorks::Collection.create(:name => @collection_name,
24
25
  :instance_dir => @instance_dir,
26
+ :template => @template,
25
27
  :parent => @server)
26
28
  c.should be_kind_of(LucidWorks::Collection)
27
29
  c.name.should == @collection_name
28
30
  c.instance_dir.should == @instance_dir
31
+ c.template.should == @template
29
32
  c.should be_persisted
30
33
  }.should change(self, :collection_count).by(1)
31
34
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: lucid_works
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.2
5
+ version: 0.6.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sam Pierson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-05 00:00:00 -07:00
13
+ date: 2011-05-06 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency