Sha256: d7251e59ce16d44a86254b90b66a5d8b9a3b95a24713c59699df9c222b1f72ec

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

describe Goldencobra::Setting do
  describe "changing a value" do
    it "successfully changes a value" do
      Goldencobra::Setting.create(title: "url", value: "www.goldencobra.de", ancestry: "goldencobra")
      Goldencobra::Setting.set_value_for_key("http://www.goldencobra.de", "goldencobra.url")
      Goldencobra::Setting.where(title: "url").first.value.should =="http://www.goldencobra.de"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
goldencobra-1.1.0 test/dummy/spec/models/setting_spec.rb
goldencobra-1.0.9.3 test/dummy/spec/models/setting_spec.rb