diff options
| author | hukl <hukl@eight.local> | 2009-02-02 00:22:54 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-02 00:22:54 +0100 |
| commit | 7a5555b1ac542e5fd5680cefaba3574677ecaa46 (patch) | |
| tree | a501453333e52b25041380cd9349898d0e0d647e /test | |
| parent | c1854b8b518bde82b80429636f73496a537c3ad5 (diff) | |
aggregation spike with flags associated to pages
Page has now a named_scope :with_flags which
accepts an array of flag names and returns
corresponding pages. Can be chained with order and
limit
Diffstat (limited to 'test')
| -rw-r--r-- | test/fixtures/flags.yml | 7 | ||||
| -rw-r--r-- | test/unit/flag_test.rb | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/fixtures/flags.yml b/test/fixtures/flags.yml new file mode 100644 index 0000000..157d747 --- /dev/null +++ b/test/fixtures/flags.yml | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html | ||
| 2 | |||
| 3 | one: | ||
| 4 | name: MyString | ||
| 5 | |||
| 6 | two: | ||
| 7 | name: MyString | ||
diff --git a/test/unit/flag_test.rb b/test/unit/flag_test.rb new file mode 100644 index 0000000..49b0d96 --- /dev/null +++ b/test/unit/flag_test.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | require 'test_helper' | ||
| 2 | |||
| 3 | class FlagTest < ActiveSupport::TestCase | ||
| 4 | # Replace this with your real tests. | ||
| 5 | test "the truth" do | ||
| 6 | assert true | ||
| 7 | end | ||
| 8 | end | ||
