osaka 0.4.5 → 0.4.6
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.
- data/lib/osaka/numbers.rb +5 -0
- data/lib/osaka/pages.rb +1 -1
- data/lib/osaka/version.rb +1 -1
- data/spec/numbers_spec.rb +5 -0
- data/spec/pages_spec.rb +0 -3
- metadata +1 -1
data/lib/osaka/numbers.rb
CHANGED
@@ -42,7 +42,12 @@ module Osaka
|
|
42
42
|
|
43
43
|
def set_column_count(amount)
|
44
44
|
control.tell("tell document 1; tell sheet 1; tell table 1; set column count to #{amount}; end tell; end tell; end tell")
|
45
|
+
end
|
46
|
+
|
47
|
+
def set_header_columns(column)
|
48
|
+
control.click_menu_bar(at.menu_item(column.to_s).menu(1).menu_item("Header Columns"), "Table")
|
45
49
|
end
|
46
50
|
|
51
|
+
|
47
52
|
end
|
48
53
|
end
|
data/lib/osaka/pages.rb
CHANGED
data/lib/osaka/version.rb
CHANGED
data/spec/numbers_spec.rb
CHANGED
@@ -41,6 +41,11 @@ describe "Osaka::Numbers" do
|
|
41
41
|
subject.new_document
|
42
42
|
end
|
43
43
|
|
44
|
+
it "Should be able to change the header columns" do
|
45
|
+
expect_click_menu_bar(at.menu_item("0").menu(1).menu_item("Header Columns"), "Table")
|
46
|
+
subject.set_header_columns(0)
|
47
|
+
end
|
48
|
+
|
44
49
|
it "Should be able to use a class method for creating documents quickly" do
|
45
50
|
Osaka::Numbers.should_receive(:new).any_number_of_times.and_return(mock("App"))
|
46
51
|
subject.should_receive(:create_document)
|
data/spec/pages_spec.rb
CHANGED
@@ -103,13 +103,10 @@ describe "Osaka::Pages" do
|
|
103
103
|
|
104
104
|
end
|
105
105
|
|
106
|
-
|
107
106
|
it "Should be able to insert a merge field" do
|
108
107
|
expect_click_menu_bar(at.menu_item("Data").menu(1).menu_item("Merge Field"), "Insert")
|
109
108
|
subject.mail_merge_field("Data")
|
110
109
|
end
|
111
|
-
|
112
|
-
|
113
110
|
end
|
114
111
|
|
115
112
|
describe "Osaka::Pages Inspector" do
|