Skip to content

Commit

Permalink
Add missing specs, closes #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassus committed Nov 17, 2012
1 parent 060a3ac commit 6bf6407
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/features/collections_list_spec.rb
Expand Up @@ -27,6 +27,16 @@
end
end

it "displays information about the database", js: true do
click_link "Stats"

within "table" do
%w(db collection objects avgObjSize dataSize storageSize numExtents indexes indexSize nsSizeMB ok).each do |field|
expect(page).to have_content(field)
end
end
end

describe "filtering", js: true do
it "filters collections by name" do
fill_in_filter("second")
Expand Down
10 changes: 10 additions & 0 deletions spec/features/documents_list_spec.rb
Expand Up @@ -42,6 +42,16 @@
end
end

it "displays information about the collection", js: true do
click_link "Stats"

within "table" do
%w(ns count size avgObjSize storageSize numExtents nindexes lastExtentSize paddingFactor systemFlags userFlags totalIndexSize indexSizes ok).each do |field|
expect(page).to have_content(field)
end
end
end

describe "click on delete document button", js: true do
let(:document) do
database = connection.db("first_database")
Expand Down

0 comments on commit 6bf6407

Please sign in to comment.